Skip to content

Commit

Permalink
Try bash instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Svedang authored and Erik Svedang committed Nov 15, 2020
1 parent 232ba9d commit 3d8e173
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
set -e;

name=$1
noprompt=$2

if [[ "$name" == "" ]]; then
if [ "$name" == "" ]; then
echo "ERROR: Must pass a name of the release as the first argument to this script.";
exit 1;
fi
Expand All @@ -14,7 +14,7 @@ fullPath="$PWD/releases/$name"
echo "Creating release '$name'"
echo "Full path = '$fullPath'"

if [[ "$noprompt" == "--noprompt" ]]; then
if [ "$noprompt" == "--noprompt" ]; then
echo "No prompt, will continue"
else
echo "Continue? (y/n)"
Expand Down

0 comments on commit 3d8e173

Please sign in to comment.