File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ install-docker-plugin:
4
4
5
5
.PHONY : shellcheck
6
6
shellcheck :
7
- find . -type f \( -name " docker-pussh" -o -name " *.sh" \) -print0 | xargs -0 shellcheck;
7
+ find . -path " ./tmp" -prune -o -type f \( -name " docker-pussh" -o -name " *.sh" \) -print0 \
8
+ | xargs -0 shellcheck -s bash;
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ if [[ "${UNREGISTRY_DEBUG:-}" == "1" ]]; then
5
5
set -x
6
6
fi
7
7
8
+ # Script version
8
9
VERSION=" 0.1.3"
9
10
10
11
# Return metadata expected by the Docker CLI plugin framework: https://github.com/docker/cli/pull/1564
20
21
exit 0
21
22
fi
22
23
23
- UNREGISTRY_IMAGE=${UNREGISTRY_IMAGE:- ghcr.io/ psviderski/ unregistry: ${VERSION} }
24
+ # Pin the unregistry image version. The image doesn't change too often compared to the script,
25
+ # so we want to avoid unnecessary pulls of the latest image version.
26
+ UNREGISTRY_VERSION=0.1.3
27
+ UNREGISTRY_IMAGE=${UNREGISTRY_IMAGE:- ghcr.io/ psviderski/ unregistry: ${UNREGISTRY_VERSION} }
24
28
25
29
# Colors and symbols for output.
26
30
RED=' \033[0;31m'
@@ -287,6 +291,7 @@ while [ $# -gt 0 ]; do
287
291
;;
288
292
-v|--version)
289
293
echo " docker-pussh, version ${VERSION} "
294
+ echo " unregistry image: ${UNREGISTRY_IMAGE} "
290
295
exit 0
291
296
;;
292
297
-* )
You can’t perform that action at this time.
0 commit comments