add messages for restoring config files

This commit is contained in:
Tobias Powalowski 2022-02-21 11:13:32 +01:00
parent 8105765bb1
commit d47d43120a

View file

@ -74,6 +74,16 @@ _x86_64_pacman_use_default() {
_x86_64_pacman_restore() { _x86_64_pacman_restore() {
# restore pacman.conf and mirrorlist # restore pacman.conf and mirrorlist
[[ -z "${CUSTOM_PACMAN_CONF}" ]] || cp "${_PACMAN_MIRROR}".old "${_PACMAN_MIRROR}" if [[ -z "${_CUSTOM_PACMAN_CONF}" ]]; then
[[ -z "${CUSTOM_MIRRORLIST}" ]] || cp "${_PACMAN_CONF}".old "${_PACMAN_CONF}" echo "System's ${_PACMAN_CONF} used ..."
else
echo "Restore system's ${_PACMAN_CONF} ..."
cp "${_PACMAN_CONF}".old "${_PACMAN_CONF}"
fi
if [[ -z "${_CUSTOM_MIRRORLIST}" ]]; then
echo "System's ${_PACMAN_MIRROR} used ..."
else
echo "Restore system's ${_PACMAN_CONF} ..."
cp "${_PACMAN_MIRROR}".old "${_PACMAN_MIRROR}"
fi
} }