scripts: add missing quotes, and minor linting issues
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -22,7 +22,7 @@ set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
source $(dirname "${BASH_SOURCE[0]}")/build-utils.sh
|
||||
source "$(dirname "${BASH_SOURCE[0]}")/build-utils.sh"
|
||||
cd "${ROOT}"
|
||||
|
||||
# Make sure output directory is clean.
|
||||
@@ -35,16 +35,16 @@ BUILDDIR=$(mktemp -d)
|
||||
cleanup() {
|
||||
if [[ ${BUILDDIR} == /tmp/* ]]; then
|
||||
echo "[-] REMOVING ${BUILDDIR}"
|
||||
rm -rf ${BUILDDIR}
|
||||
rm -rf "${BUILDDIR}"
|
||||
fi
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
set -x
|
||||
latest=$(readlink ./releases/cri-cni-containerd.tar.gz)
|
||||
tarball=$(echo ${latest} | sed -e 's/cri-containerd-cni/containerd-cni/g' | sed -e 's/-linux-amd64/.linux-amd64/g')
|
||||
cp releases/${latest} ${BUILDDIR}/${tarball}
|
||||
cp releases/${latest}.sha256sum ${BUILDDIR}/${tarball}.sha256
|
||||
tarball=$(echo "${latest}" | sed -e 's/cri-containerd-cni/containerd-cni/g' | sed -e 's/-linux-amd64/.linux-amd64/g')
|
||||
cp "releases/${latest}" "${BUILDDIR}/${tarball}"
|
||||
cp "releases/${latest}.sha256sum" "${BUILDDIR}/${tarball}.sha256"
|
||||
|
||||
# Push test tarball to Google cloud storage.
|
||||
VERSION=$(git describe --match 'v[0-9]*' --dirty='.m' --always)
|
||||
@@ -55,4 +55,4 @@ else
|
||||
DEPLOY_DIR="containerd/${DEPLOY_DIR}"
|
||||
fi
|
||||
|
||||
PUSH_VERSION=true DEPLOY_DIR=${DEPLOY_DIR} TARBALL=${tarball} VERSION=${VERSION#v} BUILD_DIR=${BUILDDIR} ${ROOT}/test/push.sh
|
||||
PUSH_VERSION=true DEPLOY_DIR=${DEPLOY_DIR} TARBALL=${tarball} VERSION=${VERSION#v} BUILD_DIR=${BUILDDIR} "${ROOT}/test/push.sh"
|
||||
|
||||
Reference in New Issue
Block a user