Skip to content

Commit

Permalink
Improve POSIX-compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
almirsarajcic committed Sep 18, 2024
1 parent 8bd7d46 commit effd281
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions priv/static/Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ maybe_install() {
echo "$1 is already installed. Skipping..."
else
echo "Installing $1..."
if [[ "$1" == "Erlang" ]]; then
if [ "$1" = "Erlang" ]; then
echo "This might take a while."
fi
echo ""
Expand Down Expand Up @@ -222,7 +222,8 @@ is_yn() {
answer=''

while ! is_yn "$answer"; do
read -p "Do you want to continue? (y/n) " answer
printf "Do you want to continue? (y/n) "
read -r answer
echo ""
case "$answer" in
[yY] | [yY][eE][sS])
Expand Down
5 changes: 3 additions & 2 deletions priv/static/macOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ maybe_install() {
echo "$1 is already installed. Skipping..."
else
echo "Installing $1..."
if [[ "$1" == "Homebrew" || "$1" == "Erlang" ]]; then
if [ "$1" = "Homebrew" ] || [ "$1" = "Erlang" ]; then
echo "This might take a while."
fi
echo ""
Expand Down Expand Up @@ -243,7 +243,8 @@ is_yn() {
answer=''

while ! is_yn "$answer"; do
read -p "Do you want to continue? (y/n) " answer
printf "Do you want to continue? (y/n) "
read -r answer
echo ""
case "$answer" in
[yY] | [yY][eE][sS])
Expand Down

0 comments on commit effd281

Please sign in to comment.