mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-08-09 12:08:52 +00:00
Merge pull request #617 from s1061123/fix/check-tty
Conditional check for tty/non-tty in case of wait (i.e. read)
This commit is contained in:
commit
c1166d2d3d
@ -418,5 +418,9 @@ if [ "$MULTUS_CLEANUP_CONFIG_ON_EXIT" == true ]; then
|
|||||||
done
|
done
|
||||||
else
|
else
|
||||||
log "Entering sleep (success)..."
|
log "Entering sleep (success)..."
|
||||||
|
if tty -s; then
|
||||||
read
|
read
|
||||||
|
else
|
||||||
|
sleep infinity
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user