Fix read bei curl|bash: stdin von /dev/tty lesen
Bei curl|bash ist stdin die Pipe, nicht das Terminal. read < /dev/tty liest direkt vom Terminal. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f9199a3f31
commit
5553e0e744
2 changed files with 2 additions and 2 deletions
2
setup.sh
2
setup.sh
|
|
@ -24,7 +24,7 @@ else
|
|||
echo "Welches MacBook Pro?"
|
||||
echo " 13 = MBP 13\" Late 2013"
|
||||
echo " 16 = MBP 16\" Mid 2014 (Intel + AMD Radeon)"
|
||||
read -rp "Modell [13/16]: " MODEL
|
||||
read -rp "Modell [13/16]: " MODEL < /dev/tty
|
||||
[[ "$MODEL" != "13" && "$MODEL" != "16" ]] && fail "Ungültiges Modell: $MODEL"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue