Apply shfmt

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-03-18 20:33:58 +01:00
parent 02bc617004
commit 0226121529
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -12,22 +12,22 @@ git reset --hard origin/master
### ---- ### ### ---- ###
if ! [ -e jq ]; then if ! [ -e jq ]; then
echo "Loading local copy of jq-1.5" echo "Loading local copy of jq-1.5"
case ${HOST_OS} in case ${HOST_OS} in
Linux) Linux)
curl -sSLo ./jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 curl -sSLo ./jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64
;; ;;
Darwin) Darwin)
curl -sSLo ./jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-osx-amd64 curl -sSLo ./jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-osx-amd64
;; ;;
*) *)
echo "/!\\ Unable to download jq for ${HOST_OS}" echo "/!\\ Unable to download jq for ${HOST_OS}"
exit 1 exit 1
;; ;;
esac esac
chmod +x jq chmod +x jq
fi fi
### ---- ### ### ---- ###
@ -36,13 +36,13 @@ echo "Fetching latest version number of awscli"
CURATOR_VERSION=$(curl -sSL https://pypi.python.org/pypi/elasticsearch-curator/json | ./jq -r .info.version) CURATOR_VERSION=$(curl -sSL https://pypi.python.org/pypi/elasticsearch-curator/json | ./jq -r .info.version)
if ( git tag -l ${CURATOR_VERSION} | grep -q ${CURATOR_VERSION} ); then if (git tag -l ${CURATOR_VERSION} | grep -q ${CURATOR_VERSION}); then
echo "/!\\ Already got a tag for version ${CURATOR_VERSION}, stopping now" echo "/!\\ Already got a tag for version ${CURATOR_VERSION}, stopping now"
exit 0 exit 0
fi fi
echo "Writing requirements.txt" echo "Writing requirements.txt"
echo "elasticsearch-curator==${CURATOR_VERSION}" > requirements.txt echo "elasticsearch-curator==${CURATOR_VERSION}" >requirements.txt
echo "PyYAML==3.13" >>requirements.txt # Temp. fix for https://github.com/elastic/curator/issues/1368 echo "PyYAML==3.13" >>requirements.txt # Temp. fix for https://github.com/elastic/curator/issues/1368
### ---- ### ### ---- ###
@ -55,7 +55,7 @@ docker build .
echo "Updating repository..." echo "Updating repository..."
git add requirements.txt git add requirements.txt
git -c user.name='Travis Automated Update' -c user.email='travis@luzifer.io' \ git -c user.name='Travis Automated Update' -c user.email='travis@luzifer.io' \
commit -m "elasticsearch-curator ${CURATOR_VERSION}" commit -m "elasticsearch-curator ${CURATOR_VERSION}"
git tag ${CURATOR_VERSION} git tag ${CURATOR_VERSION}
git push -q https://auth:${GH_TOKEN}@github.com/luzifer-docker/curator master --tags git push -q https://auth:${GH_TOKEN}@github.com/luzifer-docker/curator master --tags