From 38726cf70b2fc6957e6df1af23111bb2d6600905 Mon Sep 17 00:00:00 2001 From: Ole Streicher Date: Thu, 4 Jul 2024 20:45:16 +0200 Subject: [PATCH] Force symlinks instead of removing content first in xgterm postinstall --- xgterm/scripts/postinstall | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/xgterm/scripts/postinstall b/xgterm/scripts/postinstall index 456df1a..079c6a7 100755 --- a/xgterm/scripts/postinstall +++ b/xgterm/scripts/postinstall @@ -11,7 +11,6 @@ APP_PATH=$2 mkdir -p /usr/local/bin/ /usr/local/share/man/man1/ /usr/local/share/terminfo/78 XGTERM_PATH=${APP_PATH}/XGTerm.app/Contents/Resources -rm -f /usr/local/bin/xgterm /usr/local/share/man/man1/xgterm.1 /usr/local/share/terminfo/78/xgterm -ln -s ${XGTERM_PATH}/bin/xgterm /usr/local/bin/ -ln -s ${XGTERM_PATH}/man/xgterm.1 /usr/local/share/man/man1/ -ln -s ${XGTERM_PATH}/terminfo/78/xgterm /usr/local/share/terminfo/78/ +ln -sf ${XGTERM_PATH}/bin/xgterm /usr/local/bin/ +ln -sf ${XGTERM_PATH}/man/xgterm.1 /usr/local/share/man/man1/ +ln -sf ${XGTERM_PATH}/terminfo/78/xgterm /usr/local/share/terminfo/78/