include check if file exists

This commit is contained in:
Kim 2016-12-26 14:20:26 +01:00 committed by GitHub
parent 3898def2f7
commit 390b668f2b

View File

@ -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