Make empty NOPLAN safe

This commit is contained in:
Bryan Richter 2024-01-30 10:47:39 +02:00
parent b7a2b25eb2
commit 56aab7119e
No known key found for this signature in database
GPG Key ID: B202264020068BFB

View File

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