Skip to content

Commit

Permalink
Update postrm
Browse files Browse the repository at this point in the history
add logic
  • Loading branch information
Crilum authored Jun 8, 2022
1 parent d767d06 commit 5c7f629
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion debian/postrm
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
#!/bin/bash
rm -rf /usr/bin/up
if [[ "$(file /usr/bin/up)" =~ "symbolic link to /usr/bin/update" ]]; then
rm -rf /usr/bin/up
else
echo "It looks like your '/usr/bin/up' file isn't a symbolic link to '/usr/bin/update', so it hasn't been removed. If you stil want to remove it, you can do so with: sudo rm -f /usr/bin/up"
fi

0 comments on commit 5c7f629

Please sign in to comment.