We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bfdaae commit 5129d1dCopy full SHA for 5129d1d
script.sh
@@ -23,15 +23,16 @@ tmate -S /tmp/tmate.sock wait tmate-ready
23
echo To connect to this session copy-n-paste the following into a terminal:
24
tmate -S /tmp/tmate.sock display -p '#{tmate_ssh}'
25
26
-echo "echo hi from debugger" >> ~/.bash_profile
27
-
28
# Wait for connection to close or timeout in 15 min
29
-timeout=$((15*60))
+timeout=$((2*60))
30
while [ -S /tmp/tmate.sock ]; do
31
sleep 1
32
timeout=$(($timeout-1))
33
- if (( timeout < 0 )); then
34
- echo Waiting on tmate connection timed out!
35
- exit 1
+
+ if [ ! -f /tmp/keepalive ] ; then
+ if (( timeout < 0 )); then
+ echo Waiting on tmate connection timed out!
+ exit 1
36
+ fi
37
fi
38
done
0 commit comments