From bf0a82be8d88da9eafc9fd52f63454319dedeff2 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Mon, 19 Jun 2017 18:26:23 +0700 Subject: [PATCH] sqg: Check existence for queue file(s). Signed-off-by: Willy Sudiarto Raharjo --- src/usr/libexec/sbopkg/sqg/functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/usr/libexec/sbopkg/sqg/functions b/src/usr/libexec/sbopkg/sqg/functions index ba1a143..64303b4 100644 --- a/src/usr/libexec/sbopkg/sqg/functions +++ b/src/usr/libexec/sbopkg/sqg/functions @@ -198,7 +198,9 @@ build_queuefile_custom () { rm -f "$QUEUEDIR/$QUEUENAME.sqf" for PKG in ${PACKAGES[@]}; do - cat "$PKG.sqf" >> "$QUEUENAME.sqf" + if [ -f "$PKG.sqf" ]; then + cat "$PKG.sqf" >> "$QUEUENAME.sqf" + fi done ) }