Browse Source

fix: increase compatibility with older bash versions(macos)

pull/9537/head
sinanmohd 3 months ago
parent
commit
2aaa2b33d6
  1. 4
      docker-compose/1_Auto_Upstall/noco.sh

4
docker-compose/1_Auto_Upstall/noco.sh

@ -196,8 +196,8 @@ prompt_oneof() {
fi
for one in "$@"; do
resp_upper="${response^^}"
one_upper="${one^^}"
resp_upper="$(echo "$response" | tr '[:lower:]' '[:upper:]')"
one_upper="$(echo "$one" | tr '[:lower:]' '[:upper:]')"
if [ "$resp_upper" = "$one_upper" ]; then
echo "$one"
return

Loading…
Cancel
Save