Skip to content
Snippets Groups Projects
Unverified Commit c77ba558 authored by Martyn Gigg's avatar Martyn Gigg Committed by GitHub
Browse files

Merge pull request #23270 from rosswhitfield/rpm_postun_$1

Change the check for rpm uninstall/upgrade to use $1
parents bddad0bb 8ac4292d
No related branches found
No related tags found
No related merge requests found
......@@ -8,9 +8,8 @@
ENVVARS_ON_INSTALL=@ENVVARS_ON_INSTALL_INT@
# Remove exe and links only if it looks like we were removed
# and not upgraded. If launch_mantidplot.sh exists then package
# has been upgraded and MantidPlot_exe replaced so don't touch anything
if [ ! -e $RPM_INSTALL_PREFIX0/@BIN_DIR@/launch_mantidplot.sh ]; then
# and not upgraded. If $1 == 0 then it's uninstall not upgrade
if [ $1 -eq 0 ]; then
if [ -e $RPM_INSTALL_PREFIX0/@BIN_DIR@/MantidPlot_exe ]; then
rm $RPM_INSTALL_PREFIX0/@BIN_DIR@/MantidPlot_exe
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment