summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-27 22:37:54 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-27 22:37:54 (EDT)
commit2b27b076a846929ba156e51a93ec3d4fb7087fde (patch)
treef91dbe826383221f2dc3a67bdd5d0c0c72f832a1 /lib
parentaeb7cd1c2d1ab3ad77cfdebbeb3b76887548cb8e (diff)
opkg: Only copy files that exist
Diffstat (limited to 'lib')
-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}"