Created
          July 21, 2020 19:54 
        
      - 
      
- 
        Save daniel12fsp/72104cc04a646a46ae65b16d1c9eb41c to your computer and use it in GitHub Desktop. 
    Bash template
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/sh | |
| set -x | |
| set -e | |
| trap 'catch' ERR | |
| catch() { | |
| echo "An error has occurred =(" | |
| exit 1 | |
| } | |
| case "$1" in | |
| init) | |
| ;; | |
| *) | |
| echo "Command not found" | |
| ;; | |
| esac | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment