dom0-updates: whitespace fixes
This commit is contained in:
parent
3eed63b892
commit
d9b37eec6c
@ -66,7 +66,7 @@ done
|
|||||||
if [ "$YUM_ACTION" == "reinstall" ] && [[ "$PKGS" == *"qubes-template-"* ]]; then
|
if [ "$YUM_ACTION" == "reinstall" ] && [[ "$PKGS" == *"qubes-template-"* ]]; then
|
||||||
TEMPLATE_EXCLUDE_OPTS=""
|
TEMPLATE_EXCLUDE_OPTS=""
|
||||||
echo "WARNING: Reinstalling a template will erase all files in template's /home and /rw !"
|
echo "WARNING: Reinstalling a template will erase all files in template's /home and /rw !"
|
||||||
|
|
||||||
ONEPKG=`cut -f 1 -d ' ' <<<$PKGS`
|
ONEPKG=`cut -f 1 -d ' ' <<<$PKGS`
|
||||||
if [[ "$ONEPKG" == "qubes-template-"* ]] && [[ "$ONEPKG" == "${PKGS#\ }" ]]; then # test "$PKGS" minus space
|
if [[ "$ONEPKG" == "qubes-template-"* ]] && [[ "$ONEPKG" == "${PKGS#\ }" ]]; then # test "$PKGS" minus space
|
||||||
# Prepare to backup template root.img in case reinstall doesn't complete.
|
# Prepare to backup template root.img in case reinstall doesn't complete.
|
||||||
@ -86,7 +86,7 @@ if [ "$YUM_ACTION" == "reinstall" ] && [[ "$PKGS" == *"qubes-template-"* ]]; the
|
|||||||
echo "ERROR: Specify only one package to reinstall template"
|
echo "ERROR: Specify only one package to reinstall template"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
TEMPLATE_EXCLUDE_OPTS="--exclude=`rpm -qa --qf '%{NAME},' qubes-template-\*`"
|
TEMPLATE_EXCLUDE_OPTS="--exclude=`rpm -qa --qf '%{NAME},' qubes-template-\*`"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user