sqg: Check existence for queue file(s).

Signed-off-by: Willy Sudiarto Raharjo <willysr@sbopkg.org>
This commit is contained in:
Willy Sudiarto Raharjo 2017-06-19 18:26:23 +07:00
parent ba15355444
commit bf0a82be8d
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -198,7 +198,9 @@ build_queuefile_custom () {
rm -f "$QUEUEDIR/$QUEUENAME.sqf" rm -f "$QUEUEDIR/$QUEUENAME.sqf"
for PKG in ${PACKAGES[@]}; do for PKG in ${PACKAGES[@]}; do
cat "$PKG.sqf" >> "$QUEUENAME.sqf" if [ -f "$PKG.sqf" ]; then
cat "$PKG.sqf" >> "$QUEUENAME.sqf"
fi
done done
) )
} }