Skip to content

Commit 80dee9d

Browse files
committed
feat: Add debug mode to bash script
1 parent 0b6422f commit 80dee9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker-pussh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4+
if [[ "${UNREGISTRY_DEBUG:-}" == "1" ]]; then
5+
set -x
6+
fi
7+
48
# Return metadata expected by the Docker CLI plugin framework: https://github.com/docker/cli/pull/1564
59
if [ "${1:-}" = "docker-cli-plugin-metadata" ]; then
610
cat <<EOF

0 commit comments

Comments
 (0)