aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <chaffinach+git@protonmail.ch>2022-01-07 11:05:02 +0000
committerMatthew Lemon <chaffinach+git@protonmail.ch>2022-01-07 11:05:02 +0000
commit5cbaa19341aefefeaaa5b4a9f6cda533a562d024 (patch)
tree52257a0f8bf2058c8ef02a3bd1fae1cf5540f75e
parent80fd0f8fe145e9c52e3b4a94a2fa2f7b071c4796 (diff)
parent19703abeb91bf6601219567c0d9f19d8655d213b (diff)
Merge branch 'master' of gitlab.com:yulqen/bash-scripts
-rwxr-xr-xremind.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/remind.sh b/remind.sh
index ab46eb5..e9a65e3 100755
--- a/remind.sh
+++ b/remind.sh
@@ -88,11 +88,11 @@ COMMAND="REM $day ${MONTHS[$month]} $year AT $TIME +15 *5 MSG $DESCRIPTION %1"
pid_cmd="pgrep remind"
remind_command_msg="${brightyellow}Run '$remind_full' in a tmux window on $TW_HOOK_REMIND_REMOTE_HOST.$eescape"
# first test if pid - if not exit (SCRIPT OBVIOUSLY WILL NOT PROCEED FOR TEST SERVER)
-[[ -z $(ssh $TW_HOOK_REMIND_REMOTE_HOST "$pid_cmd") ]] && echo -e "${red}Failed to get remind PID. remind is not running.$eescape" && \
+[[ -z $(ssh -p 2222 lemon@$TW_HOOK_REMIND_REMOTE_HOST "$pid_cmd") ]] && echo -e "${red}Failed to get remind PID. remind is not running.$eescape" && \
echo -e $remind_command_msg && exit 1
# -------------
-ssh $TW_HOOK_REMIND_REMOTE_HOST "
+ssh -p 2222 lemon@$TW_HOOK_REMIND_REMOTE_HOST "
echo "$COMMAND" >> ~/.reminders/${TARGETFILE}.rem
echo ''
echo '${TARGETFILE}.rem remind file is now:'