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 0645dd6 commit 7088348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ get_variable()
local DEFAULT="${1}"
local VARIABLE_NAME="${2}"

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

Expand Down

0 comments on commit 7088348

Please sign in to comment.