Skip to content

Commit a1b88de

Browse files
committed
Enable Ctrl-C in debug mode
1 parent 4a87fed commit a1b88de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kubectl-build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33
export DOCKER_CONFIG=${KUBECTL_BUILD_DOCKER_CONFIG:-${DOCKER_CONFIG:-$HOME/.docker/config.json}}
44
export KUBECONFIG="${KUBECTL_BUILD_KUBECONFIG:-$KUBECONFIG}"
55
kubectl=kubectl
6-
version=1.7.1
6+
version=1.7.2
77
image="${KUBECTL_BUILD_IMAGE:-ghcr.io/kvaps/kaniko-executor:v1.7.0}"
88
name="${KUBECTL_BUILD_NAME_OVERRIDE:-kaniko-$(env LC_ALL=C tr -dc a-z0-9 </dev/urandom | head -c 6)}"
99
context=""
@@ -185,8 +185,8 @@ if [ "$usetar" = "true" ]; then
185185
tarf -C "$context" -czf - .
186186
if [ "$debug" = true ]; then
187187
sh -c 'echo $PPID' > "$pidfile"
188-
trap 'stty icanon echo' EXIT
189-
stty -icanon -echo
188+
trap "stty '$(stty -g)'" EXIT
189+
stty -icanon -ctlecho -iexten -isig -echo
190190
cat 2>/dev/null
191191
fi
192192
) | (

0 commit comments

Comments
 (0)