From 8bbd772e434095ac66a150c908eeda0936a4d7a7 Mon Sep 17 00:00:00 2001 From: Dawa Ometto Date: Thu, 23 Jan 2025 11:59:49 +0100 Subject: [PATCH] Update run_and_pause.sh.j2 --- playbooks/roles/uu_generic/templates/run_and_pause.sh.j2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/uu_generic/templates/run_and_pause.sh.j2 b/playbooks/roles/uu_generic/templates/run_and_pause.sh.j2 index 2b3a631d..6e1d20dc 100644 --- a/playbooks/roles/uu_generic/templates/run_and_pause.sh.j2 +++ b/playbooks/roles/uu_generic/templates/run_and_pause.sh.j2 @@ -1,6 +1,8 @@ #!/bin/bash set -euo pipefail +echo "Hello! This script is currently in beta. Please report any issues to UU Research Engineering." + if [ "$#" -lt 1 ]; then echo "Usage: $0 mycommand ..." >&2 exit 1 @@ -41,8 +43,8 @@ TMUX_SESSION="run_and_pause$(date '+%d%m%Y%H%M%S')" echo "Will run the following command, and pause the workspace when it exits:" echo "$COMMAND" echo -echo "The command will be ran using tmux. You can exit the tmux window using" -echo "To re-attach to the window later, use this keybinding: 'Control-b d'" +echo "The command will be run using tmux. You can exit the tmux window using" +echo "To reattach to the window later, use this keybinding: 'Control-b d'" echo "tmux attach-session -t $TMUX_SESSION" echo read -p "Press any key to continue... " -n1 -s