diff options
| author | Sebastiaan van Stijn <github@gone.nl> | 2019-01-10 02:23:38 +0100 |
|---|---|---|
| committer | Sebastiaan van Stijn <github@gone.nl> | 2019-01-10 02:23:38 +0100 |
| commit | c3650770cc6839d8fbf2c07028dbfb8b4633c33b (patch) | |
| tree | 88ae927cc826ab98b2f51d038eb32731ffde96df /hack/make/binary-daemon | |
| parent | 3f2ecb5452bf59650c426bb4a5d5407136a71d87 (diff) | |
| download | docker-c3650770cc6839d8fbf2c07028dbfb8b4633c33b.tar.gz | |
Revert "Bash scripts; use double brackets, fix bare variables, add quotes"
This reverts commit 297b30df5ff4deaaedb6ceb17d7bd2e306a580ab.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'hack/make/binary-daemon')
| -rw-r--r-- | hack/make/binary-daemon | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hack/make/binary-daemon b/hack/make/binary-daemon index 13c1d66c76..c1a6e6f9ed 100644 --- a/hack/make/binary-daemon +++ b/hack/make/binary-daemon @@ -7,21 +7,21 @@ copy_binaries() { # Add nested executables to bundle dir so we have complete set of # them available, but only if the native OS/ARCH is the same as the # OS/ARCH of the build target - if [[ "$(go env GOOS)/$(go env GOARCH)" != "$(go env GOHOSTOS)/$(go env GOHOSTARCH)" ]]; then + if [ "$(go env GOOS)/$(go env GOARCH)" != "$(go env GOHOSTOS)/$(go env GOHOSTARCH)" ]; then return fi - if [[ ! -x /usr/local/bin/runc ]]; then + if [ ! -x /usr/local/bin/runc ]; then return fi echo "Copying nested executables into $dir" for file in containerd containerd-shim ctr runc docker-init docker-proxy; do cp -f `which "$file"` "$dir/" - if [[ "$hash" == "hash" ]]; then + if [ "$hash" == "hash" ]; then hash_files "$dir/$file" fi done } -[[ -z "$KEEPDEST" ]] && rm -rf "$DEST" +[ -z "$KEEPDEST" ] && rm -rf "$DEST" source "${MAKEDIR}/.binary" copy_binaries "$DEST" 'hash' |
