From 390b668f2b80bb17fa93a5eb998305bbdd1b5b04 Mon Sep 17 00:00:00 2001 From: Kim Date: Mon, 26 Dec 2016 14:20:26 +0100 Subject: include check if file exists --- scripts/import-local-packages | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/import-local-packages') diff --git a/scripts/import-local-packages b/scripts/import-local-packages index ae9a9f5c..70b4c365 100755 --- a/scripts/import-local-packages +++ b/scripts/import-local-packages @@ -7,5 +7,7 @@ mkdir -p $LOCAL_PKG_DIR FILES=packages/*.deb for f in $FILES do - cp $f $LOCAL_PKG_DIR + if [ -e "$f" ]; then + cp $f $LOCAL_PKG_DIR + fi done -- cgit v1.2.3