mirror of
				https://github.com/the-sane/lug-helper.git
				synced 2025-10-31 05:02:51 +00:00 
			
		
		
		
	Merge pull request #20 from Wrzlprnft/patch-1
fix locale causing memory preflight check to fail
This commit is contained in:
		| @@ -665,7 +665,7 @@ filelimit_check() { | ||||
|  | ||||
| # Check total system memory | ||||
| memory_check() { | ||||
|     memtotal="$(awk '/MemTotal/ {printf "%.1f \n", $2/1024/1024}' /proc/meminfo)" | ||||
|     memtotal="$(LC_NUMERIC=C awk '/MemTotal/ {printf "%.1f \n", $2/1024/1024}' /proc/meminfo)" | ||||
|     if [ ${memtotal%.*} -ge "15" ]; then | ||||
|         preflight_pass+=("Your system has $memtotal GB of memory.")   | ||||
|     else | ||||
|   | ||||
		Reference in New Issue
	
	Block a user