Skip to content

Instantly share code, notes, and snippets.

@Tak
Created September 28, 2012 08:03
Show Gist options
  • Save Tak/3798558 to your computer and use it in GitHub Desktop.
Save Tak/3798558 to your computer and use it in GitHub Desktop.
#!/bin/sh
arch=`uname -i`
case $arch in
x86_64)
echo '64bit!'
;;
i*86)
echo '32bit!'
;;
*)
echo "Sorry, we don't support $arch!"
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment