From 2b27b076a846929ba156e51a93ec3d4fb7087fde Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 27 Aug 2014 22:37:54 -0400 Subject: opkg: Only copy files that exist --- 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}" -- cgit v0.9.1