Skip to content

Commit

Permalink
MacOS doesn't support Bash 4; use a different uppercase function.
Browse files Browse the repository at this point in the history
  • Loading branch information
FlipperPA committed Apr 20, 2023
1 parent 0898fa4 commit b41f48b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,11 @@ function pyro_create() {
if [ $2 = "--auto-create" ]; then
echo "There is no venv called '${ACTIVE_NAME}'. Do you want to create it? (y/N) "
read yes_no

# Uppercase the first character of the input
yes_no=${yes_no:0:1}
yes_no=${yes_no^^}
yes_no=`echo $yes_no | tr a-z A-Z`

if [ "$yes_no" != "Y" ]; then
echo "Not creating the new venv '${ACTIVE_NAME}'."
return
Expand Down

0 comments on commit b41f48b

Please sign in to comment.