Skip to content

Commit d0c924c

Browse files
committed
FIX: Uninitialized variable
- waiting for a successful connection used $elapsed which is never initialized; this has been fixed On branch main Changes to be committed: modified: server/vscode-remote.sh
1 parent 3a17414 commit d0c924c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/vscode-remote.sh

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ function connect () {
127127

128128
while ! nc -z $JOB_NODE $JOB_PORT; do
129129
timeout
130+
elapsed=0
130131
# Sleep 1 second (w/o spawning a subprocess)
131132
while [ "${elapsed}" -lt 1 ]; do
132133
elapsed=$((SECONDS - $tstart))

0 commit comments

Comments
 (0)