summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim <UnicronNL@users.noreply.github.com>2016-12-26 14:01:40 +0100
committerGitHub <noreply@github.com>2016-12-26 14:01:40 +0100
commit3898def2f7d734098c62d0e2ad204a1b9acf50e0 (patch)
tree01d8d29e80c68c8da4c2f7adce6b2ad0b438c71f
parent4669994866d4e6ce0af2b71ba7eb0c5aba42ab4d (diff)
downloadvyos-build-3898def2f7d734098c62d0e2ad204a1b9acf50e0.tar.gz
vyos-build-3898def2f7d734098c62d0e2ad204a1b9acf50e0.zip
make loop so it does not error if no files exist
-rwxr-xr-xscripts/import-local-packages7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/import-local-packages b/scripts/import-local-packages
index be8e1688..ae9a9f5c 100755
--- a/scripts/import-local-packages
+++ b/scripts/import-local-packages
@@ -3,4 +3,9 @@
LOCAL_PKG_DIR=build/config/packages.chroot
mkdir -p $LOCAL_PKG_DIR
-cp packages/*.deb $LOCAL_PKG_DIR
+
+FILES=packages/*.deb
+for f in $FILES
+do
+ cp $f $LOCAL_PKG_DIR
+done