diff options
| author | Blake Romero <blake@blkrom.com> | 2023-05-30 11:51:21 +0100 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2023-05-30 11:51:21 +0100 |
| commit | 83a6def03f01b08992ecdb423986ce0386f08010 (patch) | |
| tree | 903b9ce8d452b6c1593880ec453ee0aa5fbe8e69 | |
| parent | 937256a593edb9b976fa98fdb9baff7f18c21356 (diff) | |
Correct RAM check & makepkg path
| -rwxr-xr-x | install-artix.sh | 6 |
1 files 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" |
