diff options
author | Petr Štetiar <ynezz@true.cz> | 2019-10-07 18:53:38 +0300 |
---|---|---|
committer | Paul Spooren <mail@aparcar.org> | 2019-10-12 00:00:08 +0300 |
commit | 964f42b5c4497a3d7f84855e8af8f3f83f8f1f35 (patch) | |
tree | 44260ad3395e48da5e55e281358979f1bf7b7367 /docker-sdk.sh | |
parent | 43c17ad72bbbce5e3f980e0d5a2971a16c11ee4f (diff) |
fix warnings reported by shellcheck and remove pythonisms
In ./docker-download.sh:
SC2086: Double quote to prevent globbing and word splitting.
SC2086: Double quote to prevent globbing and word splitting.
SC2086: Double quote to prevent globbing and word splitting.
In ./gen-targets.sh:
SC2188: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
SC2027: The surrounding quotes actually unquote this. Remove or escape them.
SC2086: Double quote to prevent globbing and word splitting.
SC2188: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
SC2027: The surrounding quotes actually unquote this. Remove or escape them.
SC2086: Double quote to prevent globbing and word splitting.
SC2027: The surrounding quotes actually unquote this. Remove or escape them.
SC2086: Double quote to prevent globbing and word splitting.
In ./docker-imagebuilder.sh:
SC2155: Declare and assign separately to avoid masking return values.
SC2086: Double quote to prevent globbing and word splitting.
SC2155: Declare and assign separately to avoid masking return values.
SC2086: Double quote to prevent globbing and word splitting.
SC2105: continue is only valid in loops.
In ./docker-rootfs.sh:
SC2039: In POSIX sh, == in place of = is undefined.
SC2155: Declare and assign separately to avoid masking return values.
SC2086: Double quote to prevent globbing and word splitting.
SC2155: Declare and assign separately to avoid masking return values.
SC2086: Double quote to prevent globbing and word splitting.
SC2105: continue is only valid in loops.
In ./docker-sdk.sh line:
SC2155: Declare and assign separately to avoid masking return values.
SC2086: Double quote to prevent globbing and word splitting.
SC2155: Declare and assign separately to avoid masking return values.
SC2086: Double quote to prevent globbing and word splitting.
SC2105: continue is only valid in loops.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'docker-sdk.sh')
-rwxr-xr-x | docker-sdk.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docker-sdk.sh b/docker-sdk.sh index 6a9743c..02b41b4 100755 --- a/docker-sdk.sh +++ b/docker-sdk.sh @@ -8,10 +8,11 @@ export DOCKER_IMAGE="${DOCKER_IMAGE:-openwrt-sdk}" export DOWNLOAD_FILE="openwrt-sdk-*.Linux-x86_64.tar.xz" if [ "$BRANCH" == "master" ]; then - export DOWNLOAD_PATH="snapshots/targets/$(echo $TARGET | tr '-' '/')" + DOWNLOAD_PATH="snapshots/targets/$(echo "$TARGET" | tr '-' '/')" else - export DOWNLOAD_PATH="releases/$BRANCH/targets/$(echo $TARGET | tr '-' '/')" + DOWNLOAD_PATH="releases/$BRANCH/targets/$(echo "$TARGET" | tr '-' '/')" fi +export DOWNLOAD_PATH -./docker-download.sh || continue +./docker-download.sh || true ./docker-build.sh || exit 1 |