summaryrefslogtreecommitdiffstats
path: root/lib/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cmd')
-rw-r--r--lib/cmd/opkg.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/cmd/opkg.sh b/lib/cmd/opkg.sh
index e415387..97c20b9 100644
--- a/lib/cmd/opkg.sh
+++ b/lib/cmd/opkg.sh
@@ -50,6 +50,10 @@ cmd_opkg_main()
if ${install_cmd}; then
case "${arg}" in
*.opk|*.ipk|*.deb)
+ if ! [ -e "${arg}" ]; then
+ set -- "${@}" "${arg}"
+ continue
+ fi
rand
new_fname="/tmp/prokit.${rand_x}.opk"
opks="${opks} ${new_fname}"