aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Titus <[email protected]>2021-11-03 14:16:27 -0500
committerGitHub <[email protected]>2021-11-03 14:16:27 -0500
commitc8c47960651500ab84ab3dac98b8fa840ee38683 (patch)
tree9cb5c838c4d01db749b92f20f87658548e12d1b2
parentf43c3f71b1d42aa4c99ba5ce616a1a1b26b506fa (diff)
parent52d319d23ea2274198532f79af1727cc217dff4b (diff)
downloadArchTitus-c8c47960651500ab84ab3dac98b8fa840ee38683.tar.xz
ArchTitus-c8c47960651500ab84ab3dac98b8fa840ee38683.zip
Merge pull request #59 from adil452100/patch-1
Fix: variable $nc not substituted
-rwxr-xr-x1-setup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/1-setup.sh b/1-setup.sh
index 679da42..3b33760 100755
--- a/1-setup.sh
+++ b/1-setup.sh
@@ -25,9 +25,9 @@ echo "-------------------------------------------------"
echo "Changing the makeflags for "$nc" cores."
TOTALMEM=$(cat /proc/meminfo | grep -i 'memtotal' | grep -o '[[:digit:]]*')
if [[ $TOTALMEM -gt 8000000 ]]; then
-sudo sed -i 's/#MAKEFLAGS="-j2"/MAKEFLAGS="-j$nc"/g' /etc/makepkg.conf
+sed -i "s/#MAKEFLAGS=\"-j2\"/MAKEFLAGS=\"-j$nc\"/g" /etc/makepkg.conf
echo "Changing the compression settings for "$nc" cores."
-sudo sed -i 's/COMPRESSXZ=(xz -c -z -)/COMPRESSXZ=(xz -c -T $nc -z -)/g' /etc/makepkg.conf
+sed -i "s/COMPRESSXZ=(xz -c -z -)/COMPRESSXZ=(xz -c -T $nc -z -)/g" /etc/makepkg.conf
fi
echo "-------------------------------------------------"
echo " Setup Language to US and set locale "