This question already has an answer here:
- Downloading files using wget 4 answers
I have the following lines in a
.sh shell script:
wget -O discord.deb https://discordapp.com/api/download?platform=linux&format=deb sudo dpkg -i discord.deb rm -f discord.deb
For some reason, the script does not work. However, if I run the commands one-by-one manually, the code works as intended. What am I doing wrong?