From 4c5c30bca86dfa425bc9558b9a4ac6c814ce38e7 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 26 Apr 2019 00:37:44 -0400 Subject: src/cmd/opkg.sh: Delimit command operands --- (limited to 'src') 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}" ;; *) -- cgit v0.9.1