Skip to content

Commit

Permalink
added delay trimming, fixed script paths
Browse files Browse the repository at this point in the history
  • Loading branch information
grokspawn committed Jun 27, 2022
1 parent fb341aa commit 58dc122
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/demo-script-major.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion example/demo-script-minor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Binary file modified example/major-version-demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified example/minor-version-demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions generate-gif.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 58dc122

Please sign in to comment.