File: replay.sh

package info (click to toggle)
python-pyfunceble 4.2.29.dev-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,108 kB
  • sloc: python: 27,413; sh: 142; makefile: 27
file content (18 lines) | stat: -rwxr-xr-x 294 bytes parent folder | download
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