added arch-based os support

This commit is contained in:
Maksymilian Potok 2021-01-29 15:46:36 +01:00
parent 4059521039
commit 4491703c9e
1 changed files with 6 additions and 4 deletions

View File

@ -30,12 +30,14 @@ function package_installed() {
if [[ -f $f ]];then
sudo ${osInfo[$f]} update
sudo ${osInfo[$f]} install $1
else
sudo pacman -Syu
sudo pacman -S $1
return
fi
done
fi
# setup for arch-based systems
sudo pacman -Syu
sudo pacman -S coreutils
sudo pacman -S $1
fi
fi
fi
}