summaryrefslogtreecommitdiffstats
path: root/src/cmd
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-26 00:37:44 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-26 00:37:44 (EDT)
commit4c5c30bca86dfa425bc9558b9a4ac6c814ce38e7 (patch)
tree558521fe8cdcac3b2ecfdd67460f9e6379aad253 /src/cmd
parent5ae28cbfcf6892a908d88a8d14ffeb85a6431904 (diff)
src/cmd/opkg.sh: Delimit command operands
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/opkg.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/opkg.sh b/src/cmd/opkg.sh
index 62aa788..7fbfdb3 100644
--- a/src/cmd/opkg.sh
+++ b/src/cmd/opkg.sh
@@ -24,7 +24,7 @@ _cmd_opkg_fini()
{
case "${cmd_opkg_opks}" in
*[!\ ]*)
- rm -f ${cmd_opkg_opks}
+ rm -f -- ${cmd_opkg_opks}
# Hack to avoid this code branch if the function is
# called again in response to a signal.
cmd_opkg_opks=''
@@ -77,7 +77,7 @@ cmd_opkg_main()
cmd_opkg_opks="$(printf '%s %s\n' \
"${cmd_opkg_opks}" \
"${root}${new_fname}")"
- cp "${arg}" "${root}${new_fname}"
+ cp -- "${arg}" "${root}${new_fname}"
set -- "${@}" "${new_fname}"
;;
*)