Skip to content

Commit e14dc90

Browse files
committed
fix(test): make sure required commands exists
1 parent 33d6b1c commit e14dc90

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/main.bash

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
cd $(dirname $0)
44

5+
for cmd in realpath curl; do
6+
type "$cmd" &> /dev/null
7+
if [ $? -ne 0 ]; then
8+
echo "command '$cmd' not found" >&2
9+
exit 1
10+
fi
11+
done
12+
513
export root=$(realpath .)
614
export fs=$(realpath fs)
715
export cert=$(realpath cert)

0 commit comments

Comments
 (0)