123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #!/bin/bash
- set -e
- set -u
- set -o pipefail
- command_parsed=0
- . functions
- . conf
- while getopts 'h12an:' OPTION; do
- case "$OPTION" in
- n)
- node=$OPTARG
- call_node node
- ;;
-
- 1)
- call_1
- ;;
- 2)
- call_2
- ;;
- a)
- call_1
- call_2
- ;;
- h)
- print_help
- ;;
- ?)
- print_usage
- exit 1
- command_parsed=1
- ;;
- :)
- echo "cosa fa?"
- ;;
- esac
- done
- if [ $command_parsed -eq 0 ]
- then
- print_usage
- fi
- #shift "$(($OPTIND -1))"
|