Remove unnecessary check

This commit is contained in:
Robin Winslow 2016-10-29 16:16:04 +01:00
parent e476562a46
commit ad5365fb53

View file

@ -46,11 +46,9 @@ main() {
exit 0
;;
* )
if [[ "${1:0:1}" == '-' ]]; then
echo "Error: Invalid option: $1" >>/dev/stderr
_usage
exit 1
fi
echo "Error: Invalid option: $1" >>/dev/stderr
_usage
exit 1
;;
esac
shift