Skip to content

Commit

Permalink
fix cleanup after update (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
hemnstill authored Mar 2, 2024
1 parent b2491ea commit 5977200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5977200

Please sign in to comment.