Arch work

This commit is contained in:
2023-01-06 17:18:05 -05:00
parent 6aefd2bd49
commit ac920e9a9c

View File

@@ -255,7 +255,7 @@ init() {
# normalize ID and set distro-specific vars # normalize ID and set distro-specific vars
case "$ID" in case "$ID" in
debian) debian|arch)
;; ;;
centos|fedora) centos|fedora)
if hash dnf &>/dev/null; then if hash dnf &>/dev/null; then
@@ -276,9 +276,6 @@ init() {
raspbian) raspbian)
ID="debian" ID="debian"
;; ;;
arch)
BUILD_SWITCH=0 # TODO could be refactored
;;
*) *)
echo "Autodetecting distro, this may be unreliable and --compat may also be required" echo "Autodetecting distro, this may be unreliable and --compat may also be required"
if hash dnf &>/dev/null; then if hash dnf &>/dev/null; then
@@ -1721,9 +1718,7 @@ main() {
fi fi
fi fi
debug "BUILD_SWITCH: $BUILD_SWITCH" if (( BUILD_SWITCH )) && [[ $ID != "arch" ]]; then
if (( BUILD_SWITCH )); then
installPackage "wget" installPackage "wget"
acquireDeb acquireDeb
if [[ "$TARGET" =~ (centos|fedora|suse) ]]; then if [[ "$TARGET" =~ (centos|fedora|suse) ]]; then