Re: pls help, what's wrong with my shell script...
the if statement needs a ; and it's good practice to place your then at the end
#!/bin/bash
echo "GUESS THE SECRET COLOR"
read COLOR
if [ $COLOR="PURPLE" ] ; then
echo "CORRECT!"
else
echo "INCORRECT!! THE SECRET COLOR IS $COLOR"
fi
does that work?
clear && echo paste url and press enter; read paste; (youtube-dl $paste) | zenity --progress --title="☠" --text "Downloading, please wait" --auto-close --pulsate && ans=$(zenity --file-selection); gnome-terminal -x mplayer "$ans"
Bookmarks