mirror of
				https://github.com/the-sane/lug-helper.git
				synced 2025-10-31 21:22:48 +00:00 
			
		
		
		
	Remove unused get_file_arch function
This commit is contained in:
		| @@ -1072,33 +1072,6 @@ wine_check() { | ||||
|     fi | ||||
| } | ||||
|  | ||||
| # Determine the architecture of a binary file | ||||
| # Used for wine_check above to check the system wine | ||||
| get_file_arch() { | ||||
|     case "$(od -An -t x1 -j 0x12 -N 1 "$1" 2>/dev/null | tr -d '[:space:]')" in | ||||
|         "3e") | ||||
|             # x86_64 | ||||
|             echo "64bit" | ||||
|             ;; | ||||
|         "03"|"06") | ||||
|             # i386 | ||||
|             echo "32bit" | ||||
|             ;; | ||||
|         "b7") | ||||
|             # aarch64 | ||||
|             echo "64bit" | ||||
|             ;; | ||||
|         "28") | ||||
|             # aarch32 | ||||
|             echo "32bit" | ||||
|             ;; | ||||
|         *) | ||||
|             # Unknown | ||||
|             echo "" | ||||
|             ;; | ||||
|     esac | ||||
| } | ||||
|  | ||||
| # Check system memory and swap space | ||||
| memory_check() { | ||||
|     # Get totals in bytes | ||||
|   | ||||
		Reference in New Issue
	
	Block a user