From 83a6def03f01b08992ecdb423986ce0386f08010 Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Tue, 30 May 2023 11:51:21 +0100 Subject: Correct RAM check & makepkg path --- install-artix.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-artix.sh b/install-artix.sh index 9ee0380..5734417 100755 --- a/install-artix.sh +++ b/install-artix.sh @@ -57,7 +57,7 @@ ram_kB=$(awk 'FNR==1 {print $2}' /proc/meminfo) ram_gb=$(bc <<< "${ram_kB} / 1000^2") # Check there is at least 1GB RAM for swap -[[ $ram_gb < 1 ]] && { echo "Not enough ram for SWAP"; exit; } +[[ $ram_gb -lt 1 ]] && { echo "Not enough ram for SWAP"; exit; } # Calculate SWAP size [[ -z $swap_size || $swap_size == auto ]] \ @@ -220,8 +220,8 @@ sed "s/# Misc options/# Misc options\n${pac_options}/g" \ # Set MAKEFLAGS to match CPU threads for faster compiling cp /etc/makepkg.conf /etc/makepkg.conf.bak -sed 's/#MAKEFLAGS=\".*\"/MAKEFLAGS=\"-j$(nproc)\"' \ - -i /etc/makepkg.conf +sed "s/#MAKEFLAGS=\".*\"/MAKEFLAGS=\"-j$(nproc)\"/" \ + -i /mnt/etc/makepkg.conf # Configure mkinitcpio.conf modules="btrfs" -- cgit