-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
versions.sh
executable file
·48 lines (44 loc) · 966 Bytes
/
versions.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env bash
# Print version information for installed binaries.
set -e
DOCKER_IMAGE="${1}"
commands=(
"ahoy --version"
"aspell --version"
"bats --version"
"composer --version"
"codecov --version"
"curl --version"
"docker --version"
"docker buildx version"
"docker compose version"
"git --version"
"goss --version"
"gpg --version"
"jq --version"
"kcov --version"
"lsof -v"
"lynx --version"
"node --version"
"npm --version"
"npx --version"
"php --version"
"rsync --version"
"shellcheck --version"
"shfmt --version"
"ssh -V"
"task --version"
"tree --version"
"unzip -v"
"vim --version"
"zip --version"
)
for command in "${commands[@]}"; do
echo "----------------------------------------"
echo "${command%% *}"
echo "----------------------------------------"
# shellcheck disable=SC2086
docker run "${DOCKER_IMAGE}" ${command}
echo "----------------------------------------"
echo
done;