Skip to content

Commit f10b27e

Browse files
committed
add checks on gs and convert
1 parent 6221466 commit f10b27e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

_scripts/pdftogif.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ if [[ $# -lt 2 ]] ; then
66
exit 1
77
fi
88

9+
if ! [ -x "$(command -v gs)" ]; then
10+
echo 'Error: gs is not installed. This script depends on it' >&2
11+
exit 1
12+
fi
13+
14+
if ! [ -x "$(command -v convert2)" ]; then
15+
echo 'Error: convert is not installed. This script depends on it' >&2
16+
exit 1
17+
fi
918

1019
SLIDES_PDF=$1
1120
PRES_ID=$2

0 commit comments

Comments
 (0)