diff options
author | Kim <UnicronNL@users.noreply.github.com> | 2016-12-26 14:01:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-26 14:01:40 +0100 |
commit | 3898def2f7d734098c62d0e2ad204a1b9acf50e0 (patch) | |
tree | 01d8d29e80c68c8da4c2f7adce6b2ad0b438c71f /scripts/import-local-packages | |
parent | 4669994866d4e6ce0af2b71ba7eb0c5aba42ab4d (diff) | |
download | vyos-build-3898def2f7d734098c62d0e2ad204a1b9acf50e0.tar.gz vyos-build-3898def2f7d734098c62d0e2ad204a1b9acf50e0.zip |
make loop so it does not error if no files exist
Diffstat (limited to 'scripts/import-local-packages')
-rwxr-xr-x | scripts/import-local-packages | 7 |
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 |