Skip to content

Commit 21b988f

Browse files
committed
chore(release): fix pub publish release script.
Relevant SO: http://stackoverflow.com/questions/2953646/how-to-declare-and-use-boolean-variables-in-shell-script tl;dr - bash does not really have booleans, 'true' and 'false' are just strings.
1 parent 1438922 commit 21b988f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/publish/pub_publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function publishModule {
3333

3434
node scripts/publish/pubspec_cleaner.js --pubspec-file=$PUBLISH_DIR/pubspec.yaml
3535

36-
if [[ ! $DRY_RUN ]]; then
36+
if [[ "$DRY_RUN" == "false" ]]; then
3737
(cd $PUBLISH_DIR && pub publish -f)
3838
fi;
3939
}

0 commit comments

Comments
 (0)