From 8ef8fba876c7d2d2effdc988ba63abc5ce131fb2 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Tue, 11 Aug 2020 23:01:08 -0400 Subject: [PATCH] Remove unnecessary mkdirs --- lug-helper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index eb0c26a..bd34f62 100644 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -265,13 +265,13 @@ sanitize() { # Back up keybinds if [ "$exported" -eq 1 ]; then echo "Backing up all saved keybinds..." - mkdir -p "$backup_path" && cp -r "$mappings_dir/." "$backup_path/keybinds/" + cp -r "$mappings_dir/." "$backup_path/keybinds/" echo -e "Done.\n" fi # Wipe the user directory echo "Wiping USER directory..." - mkdir -p "$backup_path" && mv "$user_dir" "$backup_path/userbackup_$(date +"%Y%m%d-%H%M%S")" + mv "$user_dir" "$backup_path/userbackup_$(date +"%Y%m%d-%H%M%S")" echo -e "Done.\n" # Restore custom keybinds