Skip to content

Commit d07ea35

Browse files
User friendly prompt when publishing.
1 parent 52cff67 commit d07ea35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tool/publish.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ function publish() {
2828

2929
echo -e "You're about to publish directory \e[33m'${1}'\e[39m as package \e[33m$(yq read "${pubspec}" name) v$(yq read "${pubspec}" version)\e[39m"
3030
echo -e "\e[31mWARNING: The same version can NOT be published twice!\e[39m"
31-
read -p " Are you sure you want to publish to pub.dev? " yn
31+
read -p " Publish to pub.dev [y/N]? " yn
3232
case $yn in
3333
[Yy]*)
3434
cd "${pkg_dir}" || exit 1
3535
dart pub publish --force
3636
;;
3737
[Nn]*) ;;
38-
*) echo "Please answer yes or no." ;;
38+
*) echo "Not publishing this package." ;;
3939
esac
4040
}
4141

0 commit comments

Comments
 (0)