I don't like unbound variables
This commit is contained in:
parent
b1f47c0b06
commit
f6dc32b4ed
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user