Check for svg-term and fail gracefully

This commit is contained in:
Jake Wharton
2020-10-20 11:19:06 -04:00
parent 733610b7a8
commit ce9db14cb0

View File

@ -1,5 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if ! command -v svg-term &> /dev/null; then
echo "Command 'svg-term' not found. Please install with 'npm install -g svg-term-cli'."
exit
fi
set -e set -e
REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"