chore(release): fix set -e abort on the dirty-tree note
AuthorPico <picobot@scorpioplayer.com>
Date2026-11-11 11:36:33
Commit593fcc46
Parentsd123db68
Changed files
release-dist.sh+2−1■■■
1 file+2−1
Diff
release-dist.sh+2−1■■■
index 99d851e..f3cad40 100755
--- a/release-dist.sh
+++ b/release-dist.sh
@@ -74,8 +74,9 @@ if [ "$STANDALONE" -eq 0 ] && command -v scorpiox-cli-botplugin >/dev/null 2>&1;
7474 fi
7575 echo " running the standalone pipeline (dist + plugingit mirror)"
7676
77-[ -n "$(git status --porcelain 2>/dev/null)" ] && \
77+if [ -n "$(git status --porcelain 2>/dev/null)" ]; then
7878 echo " note: working tree is dirty; source.tar.gz comes from the last commit"
79+fi
7980 COMMIT=$(git rev-parse HEAD 2>/dev/null || echo "unknown")
8081 echo " version $VERSION"
8182 echo " commit $COMMIT"
8283
release-dist.sh+2−1■■■
index 99d851e..f3cad40 100755index 99d851e..f3cad40 100755
--- a/release-dist.sh--- a/release-dist.sh
+++ b/release-dist.sh+++ b/release-dist.sh
@@ -74,8 +74,9 @@ if [ "$STANDALONE" -eq 0 ] && command -v scorpiox-cli-botplugin >/dev/null 2>&1;@@ -74,8 +74,9 @@ if [ "$STANDALONE" -eq 0 ] && command -v scorpiox-cli-botplugin >/dev/null 2>&1;
74 fi74 fi
75 echo " running the standalone pipeline (dist + plugingit mirror)"75 echo " running the standalone pipeline (dist + plugingit mirror)"
76 76
77-[ -n "$(git status --porcelain 2>/dev/null)" ] && \77+if [ -n "$(git status --porcelain 2>/dev/null)" ]; then
78 echo " note: working tree is dirty; source.tar.gz comes from the last commit"78 echo " note: working tree is dirty; source.tar.gz comes from the last commit"
79+fi
79 COMMIT=$(git rev-parse HEAD 2>/dev/null || echo "unknown")80 COMMIT=$(git rev-parse HEAD 2>/dev/null || echo "unknown")
80 echo " version $VERSION"81 echo " version $VERSION"
81 echo " commit $COMMIT"82 echo " commit $COMMIT"
8283