Skip to content

Instantly share code, notes, and snippets.

@necenzurat
Created January 6, 2019 00:42
Show Gist options
  • Save necenzurat/01780665dc7ed75dd5480971ded9eddc to your computer and use it in GitHub Desktop.
Save necenzurat/01780665dc7ed75dd5480971ded9eddc to your computer and use it in GitHub Desktop.
get os_arch
#!/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