mirror of https://git.envs.net/envs/burrow.git
Remove BASH_VERSION check, just stick with lowest common denominator ;)
This commit is contained in:
parent
a8ec4d6c57
commit
516f835ad3
8
burrow
8
burrow
|
@ -566,12 +566,8 @@ getline () {
|
|||
_var=${2:-_line}
|
||||
_default="$3"
|
||||
if [ -t 0 ]; then
|
||||
if [ -n "$BASH_VERSION" ]; then
|
||||
read -erp "$1: " "$_var"
|
||||
else
|
||||
printf "%s: " "$1"
|
||||
IFS= read -r "$_var"
|
||||
fi
|
||||
printf "%s: " "$1"
|
||||
IFS= read -r "$_var"
|
||||
# use default if possible when input is blank
|
||||
_val=$(eval echo \$${_var})
|
||||
if [ ! -n "$_val" ] && [ -n "$_default" ]; then
|
||||
|
|
Loading…
Reference in New Issue