summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-05-02 17:40:44 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-05-03 01:50:37 -0400
commit95d22e66712e1f8a20da85d1f97387190d5d7536 (patch)
tree4f02f42016758bbbd7a498bed52000b598dc9329 /src
parent5b337b9c78da680bdf0557a4b5b68efe14508dad (diff)
librefetch: tidy an 'eval' command
Diffstat (limited to 'src')
-rwxr-xr-xsrc/librefetch/librefetch2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch
index 86986f3..807fe9b 100755
--- a/src/librefetch/librefetch
+++ b/src/librefetch/librefetch
@@ -254,7 +254,7 @@ parse_options() {
shrt="$({ printf '%s\0' "${shrt1[@]}"; printf '%s:\0' "${shrt2[@]}"; } | sort -zu | xargs -0 printf '%s')"
long="$({ printf '%s\0' "${long1[@]}"; printf '%s:\0' "${long2[@]}"; } | sort -zu | xargs -0 printf '%s,')"
args="$(getopt -n "$cmd" -o "$shrt" -l "${long%,}" -- "$@")" || ret=$?
- eval set -- "$args"
+ eval "set -- $args"
unset shrt long args
# Parse the options.