Skip to content

Commit

Permalink
- bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BeanVortex committed Dec 14, 2023
1 parent fcca0a9 commit c628462
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions builders/linux-installer/application/BitKipUninstall.desktop
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[Desktop Entry]
Name=Uninstall BitKip
Keywords=download,java,app
Exec=/usr/share/BitKip/uninstall.sh
Terminal=false
Exec=bash -c '/usr/share/BitKip/uninstall.sh'
Terminal=true
Icon=/usr/share/BitKip/logo.png
Type=Application
Categories=app,download
Expand Down
7 changes: 2 additions & 5 deletions builders/linux-installer/application/uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
if [ "$EUID" -ne 0 ]
then
echo "Please run as root to delete the application folder and files from /usr/share and /usr/bin"
exit
fi
# sudo
[ "$UID" -eq 0 ] || exec sudo "$0" "$@"

read -p "Are you sure you want to uninstall BitKip? (y/n) " RESP
if [ "$RESP" = "n" ]; then
Expand Down

0 comments on commit c628462

Please sign in to comment.