2021-08-25 22:30:17 +00:00
|
|
|
#!/usr/bin/env bash
|
2018-05-22 15:38:20 +00:00
|
|
|
|
|
|
|
# Ensure svg-term is installed
|
|
|
|
if ! [ -x "$(command -v svg-term)" ]; then
|
|
|
|
echo "svg-term is not installed, unable to create SVG, use:"
|
|
|
|
echo "sudo npm install -g svg-term-cli"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Convert into a GIF
|
|
|
|
echo "Generating SVG..."
|
|
|
|
cat asciinema-demo.json | svg-term --out demo.svg --window
|
|
|
|
echo "Done"
|