Add file exists check to nope
This commit is contained in:
parent
fb9766fe5f
commit
33a8fefcfc
1 changed files with 6 additions and 1 deletions
7
nope
7
nope
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue