Remove ubuntu support

This commit is contained in:
2024-04-10 15:57:38 +02:00
parent 206015074a
commit 9cf05ac5fe
6 changed files with 97 additions and 901 deletions

View File

@@ -50,13 +50,7 @@ sudowrap() {
cache_updated=0
_install() {
_package="$1" ; shift
if [[ $NAME == "Ubuntu" ]] ; then
if ! (( cache_updated )) ; then
sudowrap apt-get update
cache_updated=1
fi
sudowrap apt-get install --assume-yes "${_package}"
elif [[ $NAME == "Arch Linux" ]] ; then
if [[ $NAME == "Arch Linux" ]] ; then
sudowrap pacman -S --noconfirm "${_package}"
else
2>&1 printf "Unsupported distro $NAME, exiting"
@@ -81,9 +75,4 @@ if [[ $NAME == "Arch Linux" ]] ; then
_install "ansible"
fi
if [[ $NAME == "Ubuntu" ]] ; then
_install "ansible"
_install "python3-jmespath"
fi
cd "$DOTDIR" && make