Fixed if statements

This commit is contained in:
Christoffer Martinsson 2024-09-28 15:40:19 +02:00
parent c100c12d7a
commit ac4d17b1b0

View File

@ -11,7 +11,7 @@ else
VER="0"
fi
if [ ! $OS = "Ubuntu" ]; then
if [ $OS != "Ubuntu" ]; then
printf -- '\033[33m Ubuntu not detected\n\033[37m'
exit
fi
@ -176,7 +176,7 @@ sudo nala install -y nodejs
# Install platformio
printf -- '\033[33m Installing platformio\n\033[37m'
if [ $VER = "24.04" ]; then
if [ $VER == "24.04" ]; then
pipx install platformio
pipx ensurepath
else
@ -185,7 +185,7 @@ fi
# Install pynvim
printf -- '\033[33m Installing pynvim\n\033[37m'
if [ $VER = "24.04" ]; then
if [ $VER == "24.04" ]; then
sudo nala install -y python3-pynvim
else
pip3 install pynvim
@ -195,7 +195,7 @@ fi
printf -- '\033[33m Installing neovim for node\n\033[37m'
sudo npm install -g neovim
if [ $DESKTOP = "yes" ]; then
if [ $DESKTOP == "yes" ]; then
# Install Ubuntu apps
printf -- '\033[33m Installing desktop dep.\n\033[37m'
sudo add-apt-repository -y ppa:flatpak/stable
@ -244,7 +244,7 @@ if [ $DESKTOP = "yes" ]; then
rm NerdFontsSymbolsOnly.zip
fc-cache -fv
if [ "$(dpkg -l | awk '/virtualbox/ {print }'|wc -l)" -ge 0 ]; then
if [ "$(dpkg -l | awk '/virtualbox/ {print }'|wc -l)" -eq 0 ]; then
printf -- '\033[33m Installing Virtualbox\n\033[37m'
curl https://www.virtualbox.org/download/oracle_vbox_2016.asc | gpg --dearmor > oracle_vbox_2016.gpg
curl https://www.virtualbox.org/download/oracle_vbox.asc | gpg --dearmor > oracle_vbox.gpg