Sup! I'm getting weird errors while running my script, but it doesn't crash.
echo ""
echo "New dependencies updated"
echo ""
echo "Do you already have the newest .deb file? [Y/n]"
read reply
if [[$reply == 'y' || $reply == '']];
then
echo "gg";
else
echo "not gg";
fi
var=$(find /home/rbr4t/Downloads/ -name 'discord*.deb'| sort -n | tail -1)
echo $var
echo "File located"
echo ""
sudo apt install $var
echo ""
echo "Update complete"
And when I input y, it first of all doesn't go to the first if clause and secondly, it gives these weird two lines of error messages:
/home/rbr4t/scripts/script.sh: 10: [[y: not found
/home/rbr4t/scripts/script.sh: 10: y: not found
