diff options
author | Kim <UnicronNL@users.noreply.github.com> | 2016-12-26 14:20:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-26 14:20:26 +0100 |
commit | 390b668f2b80bb17fa93a5eb998305bbdd1b5b04 (patch) | |
tree | 557352c60ad3513bb962f43cc2bab5a4ebc90db0 /scripts/import-local-packages | |
parent | 3898def2f7d734098c62d0e2ad204a1b9acf50e0 (diff) | |
download | vyos-build-390b668f2b80bb17fa93a5eb998305bbdd1b5b04.tar.gz vyos-build-390b668f2b80bb17fa93a5eb998305bbdd1b5b04.zip |
include check if file exists
Diffstat (limited to 'scripts/import-local-packages')
-rwxr-xr-x | scripts/import-local-packages | 4 |
1 files changed, 3 insertions, 1 deletions
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 |