Browse Source

made shellcheck happy

master
Sebastian 2 years ago
parent
commit
3b6fe5d1d2
Signed by: imo GPG Key ID: AFA10CBFE4391C0C
  1. 8
      lua/update.sh
  2. 8
      luarocks/update.sh
  3. 2
      update.sh

8
lua/update.sh

@ -2,11 +2,11 @@
set -eo pipefail
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
versions=( */ )
for version in "${versions[@]%/}"; do
image=imolein/lua:${version}
echo building ${image} ...
docker build -q -t ${image} ${version}
docker run --rm ${image} lua -v
echo building "${image}" ...
docker build -q -t "${image}" "${version}"
docker run --rm "${image}" lua -v
done

8
luarocks/update.sh

@ -2,11 +2,11 @@
set -eo pipefail
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
versions=( */ )
for version in "${versions[@]%/}" ; do
image=imolein/luarocks:${version}
echo building ${image} ...
docker build -q -t ${image} ${version}
docker run --rm ${image} lua -v
echo building "${image}" ...
docker build -q -t "${image}" "${version}"
docker run --rm "${image}" lua -v
done

2
update.sh

@ -3,7 +3,7 @@ set -eo pipefail
for c in lua luarocks; do
$c/update.sh
${c}/update.sh
done
docker images
Loading…
Cancel
Save