summaryrefslogtreecommitdiff
path: root/tools/linux_packaging/uninstall.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'tools/linux_packaging/uninstall.sh.in')
-rw-r--r--tools/linux_packaging/uninstall.sh.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/linux_packaging/uninstall.sh.in b/tools/linux_packaging/uninstall.sh.in
index c1d6cf561e..20aa1b688d 100644
--- a/tools/linux_packaging/uninstall.sh.in
+++ b/tools/linux_packaging/uninstall.sh.in
@@ -7,6 +7,7 @@
#
#####################################
+MAJOR_VERSION="%REPLACE_MAJOR_VERSION%"
PGM_NAME="%REPLACE_PGM%"
PGM_VENDOR="%REPLACE_VENDOR%"
@@ -160,14 +161,14 @@ then
fi
# delete the bin link if it is linked to this version
- if [ -e "${USER_BIN_DIR}/${PGM_NAME}3" ];
+ if [ -e "${USER_BIN_DIR}/${PGM_NAME}${MAJOR_VERSION}" ];
then
- BIN_LINK_TARGET=$(readlink "${USER_BIN_DIR}/${PGM_NAME}3")
+ BIN_LINK_TARGET=$(readlink "${USER_BIN_DIR}/${PGM_NAME}${MAJOR_VERSION}")
BIN_LINK_TARGET_DIR=$(dirname "${BIN_LINK_TARGET}")
if [ "${BIN_LINK_TARGET_DIR}" = "${PGM_PATH}/bin" ];
then
- ${SUPER} rm -f "${USER_BIN_DIR}/${PGM_NAME}3"
+ ${SUPER} rm -f "${USER_BIN_DIR}/${PGM_NAME}${MAJOR_VERSION}"
fi
fi