From efe872050786e5ef3cb1b8d723a05c830881b307 Mon Sep 17 00:00:00 2001 From: v4n <105587619+v4n00@users.noreply.github.com> Date: Wed, 19 Mar 2025 23:01:18 +0200 Subject: [PATCH] fix: added temporary backup making in case mods get deleted --- install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.sh b/install.sh index 2e9e94d..92a1b7b 100755 --- a/install.sh +++ b/install.sh @@ -119,6 +119,10 @@ if [[ $latest_major -gt $installed_major ]]; then search_dir="${HOME}" target_dir="Steam/steamapps/common/Helldivers\ 2/data" + # make backup + log INFO "Creating a backup in case anything goes wrong." + h2mm export + # check if game directory is in ~/.config/h2mm/h2path if [[ -f "$HOME/.config/h2mm/h2path" ]]; then game_dir=$(cat "$HOME/.config/h2mm/h2path")