Sanitarise input
This commit is contained in:
parent
ac5d6f6cf6
commit
4ae4fc5e07
@ -29,7 +29,7 @@ case ${1} in
|
|||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [ "${2}" == "" ]; then
|
if [ "${2}" == "" ] || [[ "${2}" == */* ]]; then
|
||||||
showHelp
|
showHelp
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user