Created
January 6, 2019 00:42
-
-
Save necenzurat/01780665dc7ed75dd5480971ded9eddc to your computer and use it in GitHub Desktop.
get os_arch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function os_arch () | |
{ | |
echo $($(command -v file) /bin/bash | grep -o -m 1 '32\|64' | head -1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment