Remove unnecessary mkdirs

This commit is contained in:
the-sane 2020-08-11 23:01:08 -04:00 committed by GitHub
parent 589621f43e
commit 8ef8fba876
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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