[rkward] macports: move old RKWard directory to trash

m.eik michalke null at kde.org
Wed Apr 11 23:49:41 UTC 2018


Git commit 2bcc3de13dddc2c75efac9d002620c458c02680c by m.eik michalke.
Committed on 11/04/2018 at 23:48.
Pushed by meikm into branch 'master'.

move old RKWard directory to trash

M  +5    -0    macports/postinstall_with_uninstall

https://commits.kde.org/rkward/2bcc3de13dddc2c75efac9d002620c458c02680c

diff --git a/macports/postinstall_with_uninstall b/macports/postinstall_with_uninstall
index c4006643..1f887b90 100755
--- a/macports/postinstall_with_uninstall
+++ b/macports/postinstall_with_uninstall
@@ -12,6 +12,7 @@ UNINSTALLER="${SCRIPTDIR}/uninstall.scpt"
 UNINSTALLER_DIR="${HOME}/Applications"
 UNINSTALLER_USER_APP="${UNINSTALLER_DIR}/RKWard_uninstall.app"
 UNINSTALLER_APP="${SCRIPTDIR}/RKWard_uninstall.app"
+OLDRKWARD="$(echo "$2/Applications/RKWard" | sed 's#//#/#g')"
 
 "${INSTDIR}/bin/update-mime-database" -V "${INSTDIR}/share/mime"
 
@@ -114,5 +115,9 @@ EOF
       sudo -u "${INSTALLER_USER}" launchctl load -w "${PLISTTARGET}"
     fi
   fi
+  # finally remove the old RKWard folder if it's still present
+  if [ -d "${OLDRKWARD}" ] ; then
+    mv "${OLDRKWARD}" "${HOME}/.Trash/"
+  fi
 fi
 exit 0



More information about the rkward-tracker mailing list