More quote changes
This commit is contained in:
parent
9c2b38bd17
commit
7e27ca0f3d
6 changed files with 4 additions and 4 deletions
|
@ -192,7 +192,7 @@ while [ "$i" -lt "$no_sources" ]; do
|
||||||
#
|
#
|
||||||
# Get current source
|
# Get current source
|
||||||
#
|
#
|
||||||
eval name=\$source_${i}
|
eval name=\"\$source_${i}\"
|
||||||
i=$(($i+1))
|
i=$(($i+1))
|
||||||
|
|
||||||
export name
|
export name
|
||||||
|
@ -269,11 +269,11 @@ while [ "$i" -lt "$no_sources" ]; do
|
||||||
if [ -x "$c_pre_exec" ]; then
|
if [ -x "$c_pre_exec" ]; then
|
||||||
echo "Executing ${c_pre_exec} ..."
|
echo "Executing ${c_pre_exec} ..."
|
||||||
"$c_pre_exec"
|
"$c_pre_exec"
|
||||||
ret=$?
|
ret="$?"
|
||||||
echo "Finished ${c_pre_exec}."
|
echo "Finished ${c_pre_exec}."
|
||||||
|
|
||||||
if [ $ret -ne 0 ]; then
|
if [ "$ret" -ne 0 ]; then
|
||||||
echo "$c_pre_exec failed, aborting backup."
|
echo "$c_pre_exec failed. Skipping"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue