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/bash | |
# Exit immediately if command returns a non-zero status. | |
# Do not move it to shebang since it will be ignored | |
# if run by "/bin/bash ./bash_script.sh" | |
set -e | |
# No arguments are expected, so exit with an error if anything is provided | |
# https://unix.stackexchange.com/a/25947 | |
if [ ! $# -eq 0 ]; |