From 3898def2f7d734098c62d0e2ad204a1b9acf50e0 Mon Sep 17 00:00:00 2001 From: Kim Date: Mon, 26 Dec 2016 14:01:40 +0100 Subject: make loop so it does not error if no files exist --- scripts/import-local-packages | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.3