Skip to content

Commit 0c08c87

Browse files
author
lmdds
committed
checks for availabillity of pv and autotool-helper commands
1 parent 0b39978 commit 0c08c87

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tutorial.sh

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
#checks, if pv is installed
2+
if ! command -v pv &> /dev/null; then
3+
echo "pv is not installed, but needed for the tutorial. Please install (i. e. through \"sudo apt install pv\")!"
4+
exit
5+
fi
6+
7+
#checks, if autotool-helper is installed
8+
if ! command autotool-helper &> /dev/null; then
9+
echo "autotool-helper could not be found. Please install (through \"stack install && stack install\") and make available in PATH variable!"
10+
exit
11+
fi
12+
113
echo "# Step 1: show available tasks" |pv -qL 12
214
sleep .2s
315
echo "> autotool-helper tasks" |pv -qL 12

0 commit comments

Comments
 (0)