Advertisement
LightProgrammer000

Menu rapido [instalacao e execucao]

Jul 19th, 2021 (edited)
1,661
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.75 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. clear
  4. echo -e "\033[01;34m -------------------- \033[01;37m"
  5. echo -e "\033[01;35m          \033[01;37m"
  6. echo -e "\033[01;34m -------------------- \033[01;37m"
  7. echo ""
  8. echo -e "\033[01;33m [1] Executar \033[01;37m"
  9. echo -e "\033[01;34m [2] Instalar \033[01;37m"
  10. echo ""
  11. echo -e -n "\033[01;36m - Opc: \033[01;37m"
  12. read opc
  13.  
  14. # Estrutura de escolha
  15. case $opc in
  16.  
  17. 1)
  18.     clear
  19.     echo -e "\033[01;34m\n  ----- Execucao ----- \n\033[01;37m"
  20.        
  21.         ;;
  22.  
  23. 2)
  24.     clear
  25.         echo -e "\033[01;35m\n  ----- Instalacao ----- \n\033[01;37m"
  26.    
  27.     # Estutura de decisao: Analisar se o arquivo existe
  28.     if [[ -r / ]]
  29.     then
  30.         echo -e "\033[01;33m\n # Diretorio existente \n\033[01;37m"
  31.    
  32.     else
  33.  
  34.     fi
  35.        
  36.         ;;
  37.  
  38. *)
  39.     ;;
  40.  
  41. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement