refactor(backup): add robust hostname fallback and clean restore preview
This commit is contained in:
+5
-1
@@ -154,8 +154,12 @@ fi
|
|||||||
while true; do
|
while true; do
|
||||||
echo ""
|
echo ""
|
||||||
echo "Konsole configuration files to be restored:"
|
echo "Konsole configuration files to be restored:"
|
||||||
find "${TEMP_DIR}" -mindepth 1 -maxdepth 3 | while read -r f; do
|
find "${TEMP_DIR}" -mindepth 1 | while read -r f; do
|
||||||
rel="${f#"${TEMP_DIR}"/}"
|
rel="${f#"${TEMP_DIR}"/}"
|
||||||
|
# Skip top-level parent directories if they appear alone
|
||||||
|
if [ "${rel}" = ".config" ] || [ "${rel}" = ".local" ] || [ "${rel}" = ".local/share" ] || [ "${rel}" = ".local/share/kxmlgui5" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
echo " - ~/${rel}"
|
echo " - ~/${rel}"
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user