Fix install script: read cava prompt from terminal, not stdin pipe
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -54,7 +54,7 @@ echo "alongside the now-playing bar. It is not required but adds a nice"
|
||||
echo "visual element that changes color with your selected theme."
|
||||
echo ""
|
||||
printf "Install cava? [y/N] "
|
||||
read -r answer
|
||||
read -r answer </dev/tty
|
||||
if [ "$answer" = "y" ] || [ "$answer" = "Y" ]; then
|
||||
if command -v pacman >/dev/null 2>&1; then
|
||||
sudo pacman -S --needed --noconfirm cava
|
||||
|
||||
Reference in New Issue
Block a user