From 5977200ac2b81c789fda7573cc6859aa79f9581e Mon Sep 17 00:00:00 2001 From: Alexandr Reshetnikov Date: Sun, 3 Mar 2024 02:30:26 +0400 Subject: [PATCH] fix cleanup after update (#42) --- update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index f8f7a6f1..a9a7dd16 100755 --- a/update.sh +++ b/update.sh @@ -35,11 +35,11 @@ if [[ ! -z "$target_path" ]]; then orphaned_files=$(cat $dp0/_$self_name/orphaned_files.txt) for orphaned_file in $orphaned_files do - rm -f "$dp0/$orphaned_file" + rm -f "$target_path/$orphaned_file" done echo "Removing empty directories" - find "$dp0" -type d -mindepth 1 -maxdepth 1 -exec rmdir -p --ignore-fail-on-non-empty "{}" \; + find "$target_path" -type d -mindepth 1 -maxdepth 1 -exec rmdir -p --ignore-fail-on-non-empty "{}" \; echo "Update complete: $(cat $target_path/_$self_name/version.txt)" exit 0