From ad5365fb53eb5c218cd926e09b5d32d574d67db7 Mon Sep 17 00:00:00 2001 From: Robin Winslow Date: Sat, 29 Oct 2016 16:16:04 +0100 Subject: [PATCH] Remove unnecessary check --- bin/git-force-clone | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bin/git-force-clone b/bin/git-force-clone index 58536f6..828dea6 100755 --- a/bin/git-force-clone +++ b/bin/git-force-clone @@ -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