1
0
Fork 0

flatpak-manage.sh: improve arch detection

This commit is contained in:
Pratham Patel 2024-01-20 17:12:41 +05:30
parent 7fa2010ac9
commit 1edbe86406
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 3 additions and 3 deletions

View File

@ -20,11 +20,11 @@ AMD_PKGS=(
ARM_PKGS=()
RISCV_PKGS=() # lol
if [[ "$(uname -m)" == 'x86_64' ]]; then
if grep 'x86_64' /proc/sys/kernel/arch > /dev/null; then
ALL_PKGS=( "${COMMON_PKGS[@]}" "${AMD_PKGS[@]}" )
elif [[ "$(uname -m)" == 'aarch64' ]]; then
elif grep 'aarch64' /proc/sys/kernel/arch > /dev/null; then
ALL_PKGS=( "${COMMON_PKGS[@]}" "${ARM_PKGS[@]}" )
elif [[ "$(uname -m)" == 'riscv64' ]]; then
elif grep 'riscv64' /proc/sys/kernel/arch > /dev/null; then
ALL_PKGS=( "${COMMON_PKGS[@]}" "${RISCV_PKGS[@]}" )
else
echo 'Unsupported CPU ISA'