From ac920e9a9cb269506cc32bda59d23645dfa8d478 Mon Sep 17 00:00:00 2001 From: bryan Date: Fri, 6 Jan 2023 17:18:05 -0500 Subject: [PATCH] Arch work --- installJRMC | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/installJRMC b/installJRMC index b4ab2bb..0c54012 100755 --- a/installJRMC +++ b/installJRMC @@ -255,7 +255,7 @@ init() { # normalize ID and set distro-specific vars case "$ID" in - debian) + debian|arch) ;; centos|fedora) if hash dnf &>/dev/null; then @@ -276,9 +276,6 @@ init() { raspbian) ID="debian" ;; - arch) - BUILD_SWITCH=0 # TODO could be refactored - ;; *) echo "Autodetecting distro, this may be unreliable and --compat may also be required" if hash dnf &>/dev/null; then @@ -1721,9 +1718,7 @@ main() { fi fi - debug "BUILD_SWITCH: $BUILD_SWITCH" - - if (( BUILD_SWITCH )); then + if (( BUILD_SWITCH )) && [[ $ID != "arch" ]]; then installPackage "wget" acquireDeb if [[ "$TARGET" =~ (centos|fedora|suse) ]]; then