I'm working on a bash script menu I use for reinstallation purposes of my Ubuntu (22.04) Cinnamon server. (See my other post here)
This question is related with the submenu that has to install 3th party software with its respective sources and gpg.
Here you'll find the issue details on github
I would like to know how to put these commands into a bash script without the SC2094 error.
Code: Select all
2) echo 'Google Chrome installation';
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -;
> echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list;
apt update;
apt install google-chrome-stable;
apt install -f;
apt update;
apt upgrade -y;
show_dpkg_menu;;
3) echo 'Unified Remote installation';
wget https://www.unifiedremote.com/download/linux-x64-deb;
dpkg -i linux-x64-deb;
apt update;
apt install -f;
show_dpkg_menu;;
4) echo 'Wine installation';
dpkg --add-architecture i386;
wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key;
gpg --no-default-keyring --keyring ./winehq-archive.gpg --import winehq-archive.key
gpg --no-default-keyring --keyring ./winehq.gpg --import winehq.key
> gpg --no-default-keyring --keyring ./winehq-archive.gpg --export > ./winehq-archive.gpg
> gpg --no-default-keyring --keyring ./winehq.gpg --export > ./winehq.gpg
mv ./wine*.gpg /etc/apt/trusted.gpg.d/
wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources;
apt update;
apt install --install-recommends winehq-devel;
show_dpkg_menu;;
5) echo 'Webmin installation';
wget -O - https://download.webmin.com/jcameron-key.asc > ~/jcameron-key.key;
gpg --no-default-keyring --keyring ./jcameron-key.gpg --import jcameron-key.key;
> gpg --no-default-keyring --keyring ./jcameron-key.gpg --export > ./jcameron-key.gpg;
mv ./jcameron-key.gpg /etc/apt/trusted.gpg.d/;
> echo “deb https://download.webmin.com/download/repository sarge contrib” >> /etc/apt/sources.list;
apt update;
apt install apt-transport-https webmin;;
It's always a text output method that is used. It should be specified otherwise, but I do not find how.
Can somewone help me on how to specify this in the bash script ?