Add file exists check to nope

This commit is contained in:
joachimschmidt557 2019-11-06 12:08:18 +01:00
parent fb9766fe5f
commit 33a8fefcfc

7
nope
View file

@ -13,7 +13,12 @@ Flags:
EOF EOF
} }
case "$@" in if ! [ -f "$1" ] ; then
echo "File does not exist!"
exit 1
fi
case "$1" in
--help) --help)
usage usage
exit 1 exit 1