aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorziggys <ziggys@autistici.org>2018-06-28 11:46:27 -0400
committerziggys <ziggys@autistici.org>2018-06-28 11:46:27 -0400
commitc6a7ba791f38597fc5aa4040aee79a4be5e628cf (patch)
treeea1a2b4cb35e60ef881fd019c898b2d005f9e60f
parent4a15ce53bc8b4984fbd8b8fbbae9c207f6e65d10 (diff)
downloadgc2gs-c6a7ba791f38597fc5aa4040aee79a4be5e628cf.tar
gc2gs-c6a7ba791f38597fc5aa4040aee79a4be5e628cf.zip
Hotfix. FF master branch
-rwxr-xr-xgc2gs.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/gc2gs.sh b/gc2gs.sh
index 1d090c7..24abf97 100755
--- a/gc2gs.sh
+++ b/gc2gs.sh
@@ -182,7 +182,7 @@ gs_post () {
}
# read options from commandline
-test "${#}" -lt 1 && usage "${@}"
+test $# -lt 1 && usage "$@"
while getopts ":c:k:p:vh" opt; do
case "${opt}" in
c) CONFNAME="${OPTARG}" ; EXECUTE="config" ;;
@@ -191,7 +191,7 @@ while getopts ":c:k:p:vh" opt; do
\?) printf "Invalid: -%s" "${OPTARG}" 1>&2 ; exit 3 ;;
:) printf "Invalid: -%s requires an argument" "${OPTARG}" 1>&2 ; exit 3 ;;
v) VERBOSE="notnull" ;;
- h) usage "${@}";;
+ h) usage "$@" ;;
esac
done
shift $((OPTIND -1))
@@ -204,7 +204,7 @@ TSTATUS="$(mktemp -p "${TMPDIR}")"
VOUTPUT="$(mktemp -p "${TMPDIR}")"
# configure variables
-test -z "${CONFNAME}" && usage "${@}"
+test -z "${CONFNAME}" && usage "$@"
XDGCONF="${XDG_HOME_CONFIG:=${HOME}/.config}"
CONFIGDIR="${XDGCONF}/gc2gs"
RCFILE="${CONFIGDIR}/${CONFNAME}.config"