Cleanup
This commit is contained in:
parent
f9e4b61072
commit
ad75ff4e28
@ -29,7 +29,6 @@ GetOptions() {
|
||||
if [[ ${PIPESTATUS[0]} -ne 0 ]]; then
|
||||
# e.g. return value is 1
|
||||
# then getopt has complained about wrong arguments to stdout
|
||||
help=true
|
||||
Usage
|
||||
exit 2
|
||||
fi
|
||||
@ -47,7 +46,6 @@ GetOptions() {
|
||||
;;
|
||||
-h|--help)
|
||||
help=true
|
||||
echo "test"
|
||||
shift
|
||||
;;
|
||||
-s|--source)
|
||||
@ -82,15 +80,16 @@ Usage() {
|
||||
echo " -d, --dest <destination> The destionation folder of the music"
|
||||
echo " -v, --verbose Enable verbose output"
|
||||
echo " -h, --help Display this help text"
|
||||
echo ""
|
||||
}
|
||||
|
||||
VerboseOutput() {
|
||||
if [[ $verbose ]]; then
|
||||
if [[ "$verbose" = true ]]; then
|
||||
echo "[$1] $2" >&2
|
||||
fi
|
||||
}
|
||||
|
||||
GetOptions $@
|
||||
if [[ $help ]]; then
|
||||
if [[ "$help" == true ]]; then
|
||||
Usage
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user