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