From 56aab7119e756d4dd3c84627884ef4e77421d9dc Mon Sep 17 00:00:00 2001 From: Bryan Richter Date: Tue, 30 Jan 2024 10:47:39 +0200 Subject: [PATCH] Make empty NOPLAN safe --- automated/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated/build.sh b/automated/build.sh index 2d5d11ef..9bc055a8 100755 --- a/automated/build.sh +++ b/automated/build.sh @@ -20,7 +20,7 @@ if [ $SHORTNAME = "lts" ] then TAG=$(echo $TARGET | sed 's@^lts-\([0-9]*\)\.[0-9]*@lts\1@') WORKDIR=$ROOT/work/$(echo $TARGET | sed 's@^lts-\([0-9]*\)\.[0-9]*@lts-\1@') - if [ -n "$NOPLAN" ]; then + if [ -n "${NOPLAN:-}" ]; then echo '* DO NOT EDIT work/ files: commit to lts-haskell/build-constraints! *' exit 1 fi