Compare commits

...

2 Commits

Author SHA1 Message Date
Jeroen De Meerleer 344efcc38b Updated docs 2019-03-16 17:07:14 +01:00
Jeroen De Meerleer f6dc32b4ed I don't like unbound variables 2019-03-16 17:04:47 +01:00
2 changed files with 7 additions and 6 deletions

View File

@ -1,12 +1,12 @@
# Bash Music sync
(c) 2018 Jeroen De Meerleer <me@jeroened.be>
(c) 2018-2019 Jeroen De Meerleer <me@jeroened.be>
Script to sync music from one folder to another
## Usage:
```
music-sync <options> -s|--source <source> -d|--dest <destination> -t|--temp <folder>
music-sync <options> -s|--source <source> -d|--dest <destination>
music-sync <options> <source> <destination>
Syncronises music from one folder to another.
@ -16,8 +16,9 @@ Options:
-d, --dest <destination> The destionation folder of the music
-t, --temp <folder> The temporary cache for converted files (default: /tmp/converted)
-c, --convert Convert files before syncing
-a, --convert-art Convert album-art before syncing
-b, --bitrate When converting use this bitrate
-v, --verbose <0-6> Set log level (default: 2)
-a, --convert-art Convert files before syncing
-h, --help Display this help text
Log levels:
@ -39,7 +40,7 @@ Exit Codes:
```
## Licence
Copyright 2018 Jeroen De Meerleer <me@jeroened.be>
Copyright 2018-2019 Jeroen De Meerleer <me@jeroened.be>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View File

@ -127,11 +127,11 @@ GetOptions() {
esac
done
if [[ ! -z "${1}" ]]; then
if [[ ! -z "${1+x}" ]]; then
source="$1"
fi
if [[ ! -z "${2}" ]]; then
if [[ ! -z "${2+x}" ]]; then
dest="$2"
fi