Add exit codes

This commit is contained in:
RealStickman 2021-05-29 17:08:50 +02:00
parent 45db9d52a2
commit 4d8c2da938

View File

@ -3,8 +3,10 @@ set -euo pipefail
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
echo "Please supply the seed" echo "Please supply the seed"
$(exit 1); echo "$?"
elif [ $# -ge 2 ]; then elif [ $# -ge 2 ]; then
echo "Please only give one argument" echo "Please only give one argument"
$(exit 1); echo "$?"
fi fi
seed="$1" seed="$1"