Keep remote-control loop alive when Ctrl+C is pressed in tmux
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
30418ea841
commit
b42f0049d2
1 changed files with 3 additions and 0 deletions
|
|
@ -4,6 +4,9 @@
|
|||
dir="$1"
|
||||
url="$2"
|
||||
|
||||
# Strg+C beendet nur den laufenden Server, nicht diese Schleife.
|
||||
trap 'echo " (Strg+C – Neustart folgt; zum Verlassen von tmux: Strg+b, dann d)"' INT
|
||||
|
||||
while true; do
|
||||
if [ ! -d "$dir/.git" ]; then
|
||||
echo "[$(date '+%F %T')] Klone $url nach $dir ..."
|
||||
|
|
|
|||
Loading…
Reference in a new issue