add example
This commit is contained in:
26
template.sh
Executable file
26
template.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
if [[ "${TRACE-0}" == "1" ]]; then
|
||||
set -o xtrace
|
||||
fi
|
||||
|
||||
if [[ "${1-}" =~ ^-*h(elp)?$ ]]; then
|
||||
echo 'Usage: ./script.sh arg-one arg-two
|
||||
|
||||
This is an awesome bash script to make your life better.
|
||||
|
||||
'
|
||||
exit
|
||||
fi
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
main() {
|
||||
echo do awesome stuff
|
||||
}
|
||||
|
||||
main "[email protected]"
|
||||
Reference in New Issue
Block a user