Skip to content

Commit addf5df

Browse files
committed
Improved the release script
The command `./script/release-to-chap.sh -f` used to fail on `decentralized-message-queue` which is not published to `CHaP` yet.
1 parent 9a2087c commit addf5df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/release-to-chap.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ if [[ $REPORT == 1 ]] then
5353
for cbl in $(fd -e cabal); do
5454
v=$(grep '^version:' $cbl | awk '{print $2}')
5555
n=$(dirname $cbl)
56-
x=$(git --no-pager log --oneline $n-$v.. -- $(dirname $cbl) | wc -l)
56+
x=$(git --no-pager log --oneline $n-$v.. -- $(dirname $cbl) || true | wc -l)
5757
if [[ !($x == "0") ]]; then
5858
trace "$n changes since $v"
59-
git --no-pager log --oneline --graph $n-$v.. -- $(dirname $cbl)
59+
git --no-pager log --oneline --graph $n-$v.. -- $(dirname $cbl) || true
6060
fi
6161
done
6262
else

0 commit comments

Comments
 (0)