diff options
Diffstat (limited to 'remind.sh')
-rwxr-xr-x | remind.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -88,7 +88,8 @@ 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" && echo -e $remind_command_msg && exit 1 +[[ -z $(ssh $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 " |