Skip to content
Snippets Groups Projects
Commit 5e352960 authored by Andre Maroneze's avatar Andre Maroneze Committed by Virgile Prevosto
Browse files

[Doc] follow Linux convention for script exit codes

parent 0b2b1e07
No related branches found
No related tags found
No related merge requests found
......@@ -14,19 +14,19 @@ DEBUG=no
# (special use of the 'case' construct)
if test `echo $BASH_VERSION | sed "s/\([0-9]\).*/\1/" ` -lt 4; then
echo "bash version >= 4 is required."
exit 99
exit 127
fi
# git-lfs needs to be installed
if ! command -v git-lfs >/dev/null 2>/dev/null; then
echo "git-lfs is required"
exit 99
exit 127
fi
# grep needs to be installed
if ! command -v grep --version >/dev/null 2>/dev/null; then
echo "grep is required"
exit 99
exit 127
fi
function run {
......
......@@ -3,13 +3,13 @@
# GNU parallel needs to be installed
if ! command -v parallel >/dev/null 2>/dev/null; then
echo "parallel is required"
exit 99
exit 127
fi
# latexmk needs to be installed
if ! command -v latexmk >/dev/null 2>/dev/null; then
echo "latexmk is required"
exit 99
exit 127
fi
cd $(dirname $0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment