I don't like unbound variables

This commit is contained in:
Jeroen De Meerleer 2019-03-16 17:04:47 +01:00
parent b1f47c0b06
commit f6dc32b4ed
1 changed files with 2 additions and 2 deletions

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