2011-10-11

64-bit or not

Creative way of figuring out if a system is 64-bit or not, for people who don't believe in "uname".
have_64bit_userland() {
  file -L /bin/sh | grep -q 64-bit
}

No comments:

Post a Comment