Remove tabs in shell script
Indentation by tab will cause a file listing for the current directory before the command is executed, and that what not intended here.
This commit is contained in:
18
configure
vendored
18
configure
vendored
@@ -72,9 +72,9 @@ while getopts -- ":-:" optchar; do
|
||||
prefix=${OPTARG#*=}
|
||||
;;
|
||||
help)
|
||||
usage
|
||||
exit 0
|
||||
;;
|
||||
usage
|
||||
exit 0
|
||||
;;
|
||||
with-*)
|
||||
# get the name of the package; everything before equal sign
|
||||
pkgname=${OPTARG%=*}
|
||||
@@ -139,15 +139,15 @@ while getopts -- ":-:" optchar; do
|
||||
;;
|
||||
*)
|
||||
# remove everything *after* the equal sign
|
||||
arg=${OPTARG%=*}
|
||||
arg=${OPTARG%=*}
|
||||
invalid_arg --$arg
|
||||
exit 1
|
||||
;;
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
;;
|
||||
*)
|
||||
invalid_arg -$OPTARG
|
||||
exit 1
|
||||
invalid_arg -$OPTARG
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user