mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-10-03 22:39:43 +03:00
Check dependencies to avoid a useless sudo on Archlinux (#17158)
This commit is contained in:
parent
17206eea2e
commit
c05fd88913
@ -210,7 +210,9 @@ elif [ "$(uname)" = "Linux" ]; then
|
||||
echo "Installing on Arch Linux."
|
||||
case $(uname -m) in
|
||||
x86_64|aarch64)
|
||||
sudo pacman ${PACMAN_AUTOMATED} -S --needed git openssl
|
||||
if ! pacman -Qs "^git$" > /dev/null || ! pacman -Qs "^openssl$" > /dev/null ; then
|
||||
sudo pacman ${PACMAN_AUTOMATED} -S --needed git openssl
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Incompatible CPU architecture. Must be x86_64 or aarch64."
|
||||
|
Loading…
Reference in New Issue
Block a user