fix: suppress error on missing stackfile

This commit is contained in:
Sebastian Mark 2023-12-17 19:23:38 +01:00
parent 203626f7e2
commit 5eecfcb2e7

2
dc-ops
View file

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