diff --git a/example/demo-script-major.sh b/example/demo-script-major.sh index 0b934e4..d1ed5fc 100755 --- a/example/demo-script-major.sh +++ b/example/demo-script-major.sh @@ -3,7 +3,7 @@ SCRIPTPATH="$( cd -- "$(dirname "$0")" > /dev/null 2>&1 ; pwd -P )" #echo "SCRIPTPATH is $SCRIPTPATH" -. ../$SCRIPTPATH/demo-functions.sh +. $SCRIPTPATH/../demo-functions.sh #echo "INTERACTIVE is $INTERACTIVE" diff --git a/example/demo-script-minor.sh b/example/demo-script-minor.sh index 72759fc..40713b8 100755 --- a/example/demo-script-minor.sh +++ b/example/demo-script-minor.sh @@ -3,7 +3,7 @@ SCRIPTPATH="$( cd -- "$(dirname "$0")" > /dev/null 2>&1 ; pwd -P )" #echo "SCRIPTPATH is $SCRIPTPATH" -. ../$SCRIPTPATH/demo-functions.sh +. $SCRIPTPATH/../demo-functions.sh #echo "INTERACTIVE is $INTERACTIVE" diff --git a/example/major-version-demo.gif b/example/major-version-demo.gif index bf2faa3..ec24246 100644 Binary files a/example/major-version-demo.gif and b/example/major-version-demo.gif differ diff --git a/example/minor-version-demo.gif b/example/minor-version-demo.gif index 3644292..ad1b10f 100644 Binary files a/example/minor-version-demo.gif and b/example/minor-version-demo.gif differ diff --git a/generate-gif.sh b/generate-gif.sh index 3ae8f90..9a5b9d2 100755 --- a/generate-gif.sh +++ b/generate-gif.sh @@ -18,7 +18,7 @@ EOF if [ $# -lt 2 ] then - echo "ERROR: missing mandatory parameters: {INPUT_FILE} and {OUTPUT_FILE}" + echo "ERROR: missing mandatory parameters: {INPUT_SCRIPT_FILE} and {OUTPUT_GIF_FILE}" usage exit -1 fi @@ -45,5 +45,5 @@ GIF_FILE=$(basename $OUTFILE) TOGIF="docker run --rm -v $OUTER_PATH:/data asciinema/asciicast2gif" -INTERACTIVE=0 asciinema rec --overwrite -c $INFILE $TMPFILE -$TOGIF $JSON_FILE $GIF_FILE && rm $TMPFILE && mv $OUTER_PATH/$GIF_FILE $OUTFILE +INTERACTIVE=0 asciinema rec -i 2.5 --overwrite -c $INFILE $TMPFILE +$TOGIF -h 50 $JSON_FILE $GIF_FILE && rm $TMPFILE && mv $OUTER_PATH/$GIF_FILE $OUTFILE