Skip to content

Commit

Permalink
uninstall: force delete
Browse files Browse the repository at this point in the history
uninstall script fails midway if dirs/files didn't exist
don't exit if rmdir fails.
  • Loading branch information
anoop142 committed Nov 5, 2023
1 parent c98f431 commit aecef05
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions install.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ if [ "$ARG1" == "install" ]; then

notify-send "$msg" &> /dev/null || true
elif [ "$ARG1" == "uninstall" ]; then
"${SUDO}" rm "@INSTALL_PREFIX@/bin/varnamcli" "@INSTALL_PREFIX@/lib/@LIB_NAME@.@VERSION@" "@INSTALL_PREFIX@/lib/@LIB_NAME@" "@INSTALL_PREFIX@/lib/pkgconfig/govarnam.pc"
"${SUDO}" rm "@INSTALL_PREFIX@/include/libgovarnam/"*
"${SUDO}" rmdir "@INSTALL_PREFIX@/include/libgovarnam"
"${SUDO}" rm "@INSTALL_PREFIX@/share/varnam/schemes/"*
"${SUDO}" rmdir "@INSTALL_PREFIX@/share/varnam/schemes/"
"${SUDO}" rm -f "@INSTALL_PREFIX@/bin/varnamcli" "@INSTALL_PREFIX@/lib/@LIB_NAME@.@VERSION@" "@INSTALL_PREFIX@/lib/@LIB_NAME@" "@INSTALL_PREFIX@/lib/pkgconfig/govarnam.pc"
"${SUDO}" rm -f "@INSTALL_PREFIX@/include/libgovarnam/"*
"${SUDO}" rmdir "@INSTALL_PREFIX@/include/libgovarnam" || true
"${SUDO}" rm -f "@INSTALL_PREFIX@/share/varnam/schemes/"*
"${SUDO}" rmdir "@INSTALL_PREFIX@/share/varnam/schemes/" || true

msg="Uninstallation finished"
echo $msg
Expand Down

0 comments on commit aecef05

Please sign in to comment.