I don't like unbound variables
This commit is contained in:
parent
b1f47c0b06
commit
f6dc32b4ed
@ -127,11 +127,11 @@ GetOptions() {
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ ! -z "${1}" ]]; then
|
if [[ ! -z "${1+x}" ]]; then
|
||||||
source="$1"
|
source="$1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -z "${2}" ]]; then
|
if [[ ! -z "${2+x}" ]]; then
|
||||||
dest="$2"
|
dest="$2"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user