Skip to content

Commit

Permalink
Enable Ctrl-C in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kvaps committed Nov 18, 2021
1 parent 4a87fed commit a1b88de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kubectl-build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e
export DOCKER_CONFIG=${KUBECTL_BUILD_DOCKER_CONFIG:-${DOCKER_CONFIG:-$HOME/.docker/config.json}}
export KUBECONFIG="${KUBECTL_BUILD_KUBECONFIG:-$KUBECONFIG}"
kubectl=kubectl
version=1.7.1
version=1.7.2
image="${KUBECTL_BUILD_IMAGE:-ghcr.io/kvaps/kaniko-executor:v1.7.0}"
name="${KUBECTL_BUILD_NAME_OVERRIDE:-kaniko-$(env LC_ALL=C tr -dc a-z0-9 </dev/urandom | head -c 6)}"
context=""
Expand Down Expand Up @@ -185,8 +185,8 @@ if [ "$usetar" = "true" ]; then
tarf -C "$context" -czf - .
if [ "$debug" = true ]; then
sh -c 'echo $PPID' > "$pidfile"
trap 'stty icanon echo' EXIT
stty -icanon -echo
trap "stty '$(stty -g)'" EXIT
stty -icanon -ctlecho -iexten -isig -echo
cat 2>/dev/null
fi
) | (
Expand Down

0 comments on commit a1b88de

Please # to comment.