fork download
  1. #!/bin/bash
  2.  
  3. HOST_ARCH=$(uname -m)
  4.  
  5. case "$HOST_ARCH" in
  6. x86) HOST_ARCH="32" ;;
  7. i?86) HOST_ARCH="32" ;;
  8. ia64) HOST_ARCH="64" ;;
  9. amd64) HOST_ARCH="64" ;;
  10. x86_64) HOST_ARCH="64" ;;
  11. sparc64) HOST_ARCH="64" ;;
  12. * ) HOST_ARCH="desconhecido" ;;
  13. esac
  14.  
  15. if [ $HOST_ARCH = "64" ]; then
  16. echo "comandos para 64";
  17. elif [ $HOST_ARCH = "32" ]; then
  18. echo "comandos para 32";
  19. else
  20. echo "Sistema não suportado";
  21. fi
Success #stdin #stdout 0s 4328KB
stdin
Standard input is empty
stdout
comandos para 64