Browse Source

Address shell check complaints

expose_links
Drew Short 5 years ago
parent
commit
9e697d7b9f
  1. 1
      README.md
  2. 7
      assets/out
  3. 4
      upload_pipeline.sh

1
README.md

@ -77,6 +77,7 @@ jobs:
destination: destination:
- dir: "remote:backup" - dir: "remote:backup"
subdir: code/target subdir: code/target
- dir: "remote2:release"
``` ```
## License ## License

7
assets/out

@ -10,7 +10,8 @@ echo "BUILD_NAME: $BUILD_NAME"
echo "BUILD_JOB_NAME: $BUILD_JOB_NAME" echo "BUILD_JOB_NAME: $BUILD_JOB_NAME"
echo "BUILD_PIPELINE_NAME: $BUILD_PIPELINE_NAME" echo "BUILD_PIPELINE_NAME: $BUILD_PIPELINE_NAME"
source $(dirname $0)/common.sh
# shellcheck disable=1090
source "$(dirname $0)/common.sh"
source=$1 source=$1
@ -22,7 +23,7 @@ fi
# for jq # for jq
PATH=/usr/local/bin:$PATH PATH=/usr/local/bin:$PATH
payload=$(mktemp $TMPDIR/rclone-resource-request.XXXXXX)
payload=$(mktemp "$TMPDIR/rclone-resource-request.XXXXXX")
cat > "$payload" <&0 cat > "$payload" <&0
# TODO: Remove Me - DEBUGGING # TODO: Remove Me - DEBUGGING
@ -47,7 +48,7 @@ fi
echo "Source directory: $rclone_source_directory" echo "Source directory: $rclone_source_directory"
echo "Destinations:" echo "Destinations:"
jq -c '.params.destination[] | .dir' < $payload
jq -c '.params.destination[] | .dir' < "$payload"
local_source_dir="${source}/${rclone_source_directory}" local_source_dir="${source}/${rclone_source_directory}"
ls -alh "${local_source_dir}" ls -alh "${local_source_dir}"

4
upload_pipeline.sh

@ -4,8 +4,8 @@ TEAM=docker
PIPELINE=concourse-rclone-resource PIPELINE=concourse-rclone-resource
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
pushd "${DIR}"
pushd "${DIR}" || exit
fly -t ${TEAM} set-pipeline --pipeline ${PIPELINE} --config pipeline.yml fly -t ${TEAM} set-pipeline --pipeline ${PIPELINE} --config pipeline.yml
popd
popd || exit
Loading…
Cancel
Save