Skip to content

Commit

Permalink
trying to fix read
Browse files Browse the repository at this point in the history
  • Loading branch information
Ximaz committed May 9, 2024
1 parent 7088348 commit 88452b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ get_variable()
local DEFAULT="${1}"
local VARIABLE_NAME="${2}"

[[ "${DEFAULT}" == "" ]] && echo "Specify the ${VARIABLE_NAME}: " && read DEFAULT
[[ "${DEFAULT}" == "" ]] \
&& read -p "Specify the ${VARIABLE_NAME}: " DEFAULT
echo "${DEFAULT}"
}

Expand Down

0 comments on commit 88452b0

Please sign in to comment.