From 5eecfcb2e7281bbaf6e837a198f1447116ff49a7 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Sun, 17 Dec 2023 19:23:38 +0100 Subject: [PATCH] fix: suppress error on missing stackfile --- dc-ops | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dc-ops b/dc-ops index 4f9ee59..6e642dd 100755 --- a/dc-ops +++ b/dc-ops @@ -12,7 +12,7 @@ msg() { echo "$*"; } BASEDIR=$(dirname $0) # use list from file or passed parameters -STACKLIST=$(cat $BASEDIR/stacklist) +STACKLIST=$(cat $BASEDIR/stacklist 2>/dev/null) [[ $# -gt 0 ]] && STACKLIST=$* # iterate list