Skip to content

Commit

Permalink
fix: use tracked_files.txt to determine state
Browse files Browse the repository at this point in the history
  • Loading branch information
ralgar committed May 7, 2024
1 parent defc2ae commit 9f19d99
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ _select_game() {

# Select the task to perform on chosen game
_select_task() {
if [[ ! -d $instance_path ]] ; then
if [[ ! -f "$instance_path/tracked_files.txt" ]] ; then
if ! chosen_task="$(zenity \
--title="$_project_name_formal" \
--width 640 --height 480 \
Expand Down Expand Up @@ -657,6 +657,9 @@ _uninstall() {
printf "Restored: %s\n" "${file%.bak}"
done

# Remove the tracked_files DB
rm -f "$instance_path/tracked_files.txt"

printf "\n%s was not removed, in order to prevent accidental data loss.\n" "$install_path"
printf "\nUninstall completed!\n"
}
Expand Down

0 comments on commit 9f19d99

Please sign in to comment.