Skip to content

Commit

Permalink
fix packaging script
Browse files Browse the repository at this point in the history
  • Loading branch information
psycofdj committed Jan 16, 2020
1 parent fbf1194 commit b800c92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
12 changes: 1 addition & 11 deletions jobs/boshupdate_exporter/spec
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,6 @@ properties:
- manifests/operators/enable-cf-route-registrar.yml
- manifests/operators/use-sqlite3.yml
matchers: [ "prometheus(-.*)?" ]
bosh:
owner: cloudfoundry
repo: bosh-deployment
manifest: bosh.yml
ops:
- vsphere/cpi.yml
- uaa.yml
- credhub.yml
- bbr.yml
matchers: [ "bosh(-.*)?" ]
boshupdate_exporter.github.generic_releases:
description: "Generic github releases configuration"
default:
Expand All @@ -119,5 +109,5 @@ properties:
owner: cloudfoundry
repo: bosh-linux-stemcell-builder
format:
match: "stable-([0-9+.]+)"
match: "ubuntu-xenial/v([0-9+.]+)"
replace: "${1}"
6 changes: 3 additions & 3 deletions packages/boshupdate_exporter/packaging
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash -e
#!/bin/bash -eu

ostype=$(uname | tr '[:upper:]' '[:lower:]')
if [ -z "${BOSH_PACKAGES_DIR}" ]; then
pkg_dir=$(readlink -nf /var/vcap/packages/golang-1.12-${ostype})
if [ -z "${BOSH_PACKAGES_DIR-}" ]; then
pkg_dir=$(readlink -nf /var/vcap/packages/golang-1.12-${ostype})
else
pkg_dir=${BOSH_PACKAGES_DIR}/golang-1.12-${ostype}
fi
Expand Down

0 comments on commit b800c92

Please sign in to comment.