From 54202fc5bab52cd3956b3c69da29a10e5c29a4e6 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Tue, 11 Aug 2020 22:25:25 -0400 Subject: [PATCH] Fix moving user folder & restoring keybinds --- lug-helper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index d33099f..e735408 100644 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -262,13 +262,13 @@ sanitize() { # Wipe the user directory echo "Wiping USER directory..." - mv "$user_dir" "$backup_path/userbackup" + mkdir -p "$backup_path" && mv "$user_dir" "$backup_path/userbackup_$(date +"%Y%m%d-%H%M%S")" echo -e "Done.\n" # Restore custom keybinds if [ "$exported" -eq 1 ]; then echo "Restoring keybinds..." - mkdir -p "$mappings_dir" && cp -r "$backup_path/keybinds/" "$mappings_dir/" + mkdir -p "$mappings_dir" && cp -r "$backup_path/keybinds/." "$mappings_dir/" echo -e "Done.\n" message 1 "\nTo re-import your keybinds, select it in-game from the list:\nOptions->Keybindings->Control Profiles\n" fi