Skip to content

Commit

Permalink
Update run_and_pause.sh.j2
Browse files Browse the repository at this point in the history
  • Loading branch information
dometto authored Jan 23, 2025
1 parent 345a3f7 commit 8bbd772
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions playbooks/roles/uu_generic/templates/run_and_pause.sh.j2
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8bbd772

Please sign in to comment.