Small improvemnt for addConfig() if target does not exist for dry run
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
VERSION_REV=15
|
||||
VERSION_MAJOR=0
|
||||
VERSION_MINOR=0
|
||||
VERSION_MINOR=1
|
||||
|
||||
## Start of generic script part
|
||||
|
||||
@@ -637,15 +637,15 @@ addConf() {
|
||||
echoerr " [E] Source: \"$source\" does not exist"
|
||||
return 1;
|
||||
fi
|
||||
if [ "$dest" == "" ] ; then
|
||||
if [ $DRY -ne 0 ] ; then
|
||||
echo " [I] Writing $dest ...dry-run"
|
||||
return 0;
|
||||
fi
|
||||
if [ -z "$dest" ] ; then
|
||||
echoerr " [E] Destination empty"
|
||||
return 1;
|
||||
fi
|
||||
|
||||
if [ "$DRY" -ne 0 ] ; then
|
||||
echo " [I] Writing $dest ...dry-run"
|
||||
return 0;
|
||||
fi
|
||||
echo -n " [I] Writing $dest ..."
|
||||
|
||||
if [ $confMode != "-m" ] ; then
|
||||
|
Reference in New Issue
Block a user