Skip to content

Commit 999e531

Browse files
committed
fix: require Arch detection before using pacman install paths
1 parent 1edbfea commit 999e531

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

scripts/install.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -627,10 +627,6 @@ is_arch_linux() {
627627
return 0
628628
fi
629629
fi
630-
# Fallback: check for pacman
631-
if command -v pacman &> /dev/null; then
632-
return 0
633-
fi
634630
return 1
635631
}
636632

@@ -677,7 +673,7 @@ install_build_tools_linux() {
677673
return 0
678674
fi
679675

680-
if command -v pacman &> /dev/null || is_arch_linux; then
676+
if command -v pacman &> /dev/null && is_arch_linux; then
681677
if is_root; then
682678
run_quiet_step "Installing build tools" pacman -Sy --noconfirm base-devel python make cmake gcc
683679
else
@@ -1922,7 +1918,7 @@ install_git() {
19221918
elif command -v apt-get &> /dev/null; then
19231919
run_quiet_step "Updating package index" apt_get_update
19241920
run_quiet_step "Installing Git" apt_get_install git
1925-
elif command -v pacman &> /dev/null || is_arch_linux; then
1921+
elif command -v pacman &> /dev/null && is_arch_linux; then
19261922
if is_root; then
19271923
run_quiet_step "Installing Git" pacman -Sy --noconfirm git
19281924
else

0 commit comments

Comments
 (0)