File: replay.sh

package info (click to toggle)
python-pyfunceble 4.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,144 kB
  • sloc: python: 27,918; sh: 142; makefile: 48
file content (18 lines) | stat: -rwxr-xr-x 294 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash

set -e

hash pyfunceble

tmpDir="/tmp/pyfunceble-demos"

for file in "${@}"; do
    castFile="${tmpDir}/$(basename "${file}").cast"

    if [[ -f "${castFile}" ]]
    then
        asciinema play "${castFile}"
    else
        echo "File not found: ${castFile}"
    fi
done