From b0fe60b350b33daa0b7b98fd06794dd216d039a3 Mon Sep 17 00:00:00 2001 From: jrmartin Date: Mon, 18 Nov 2024 10:08:10 -0800 Subject: [PATCH] Kill server if running prior to installation --- package/scripts/mac_installer.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/scripts/mac_installer.sh b/package/scripts/mac_installer.sh index 6126714f..603dfe5a 100755 --- a/package/scripts/mac_installer.sh +++ b/package/scripts/mac_installer.sh @@ -27,6 +27,8 @@ rm -rf "$APP_SHORTCUT_PATH" rm -rf "$HOME/psyneulinkviewer-darwin-x64/" rm -rf "$DESKTOP_PATH/$SHORTCUT_NAME.app" +ps aux | grep rpc_server | grep -v grep | awk '{print $2}' | xargs kill -9 + pip uninstall psyneulinkviewer && pip cache purge pip install -vv psyneulinkviewer --break-system-packages --use-pep517 && source ~/.bashrc_profile check_last_command @@ -40,7 +42,6 @@ CONDA_SH=$(find ~ -name conda.sh 2>/dev/null | head -n 1) # Write the .command file that launches the app with conda environment cat < "$COMMAND_FILE_PATH" #!/bin/bash -ps aux | grep rpc_server | grep -v grep | awk '{print $2}' | xargs kill -9 source ~/.bashrc_profile source $CONDA_SH conda activate $PSYNEULINK_ENV