mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-27 08:14:18 +00:00
Fix moving user folder & restoring keybinds
This commit is contained in:
parent
6e8d38d3df
commit
54202fc5ba
@ -262,13 +262,13 @@ sanitize() {
|
|||||||
|
|
||||||
# Wipe the user directory
|
# Wipe the user directory
|
||||||
echo "Wiping 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"
|
echo -e "Done.\n"
|
||||||
|
|
||||||
# Restore custom keybinds
|
# Restore custom keybinds
|
||||||
if [ "$exported" -eq 1 ]; then
|
if [ "$exported" -eq 1 ]; then
|
||||||
echo "Restoring keybinds..."
|
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"
|
echo -e "Done.\n"
|
||||||
message 1 "\nTo re-import your keybinds, select it in-game from the list:\nOptions->Keybindings->Control Profiles\n"
|
message 1 "\nTo re-import your keybinds, select it in-game from the list:\nOptions->Keybindings->Control Profiles\n"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user