Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
Update github-config to 16b5ec5
Browse files Browse the repository at this point in the history
  • Loading branch information
paketo-bot authored and ryanmoran committed Jul 21, 2020
1 parent 60beea6 commit 81c3d69
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -eu

set -e
set -u
set -o pipefail

readonly PROGDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
Expand Down Expand Up @@ -30,28 +32,6 @@ function main() {
popd > /dev/null || return
fi

if [[ -f "${BUILDPACKDIR}/main.go" ]]; then
pushd "${BUILDPACKDIR}/bin" > /dev/null || return
printf "%s" "Building run..."

GOOS=linux \
go build \
-ldflags="-s -w" \
-o "run" \
"${BUILDPACKDIR}"

echo "Success!"

for name in detect build; do
printf "%s" "Linking ${name}..."

ln -sf "run" "${name}"

echo "Success!"
done
popd > /dev/null || return
fi

if [[ -d "${BUILDPACKDIR}/cmd" ]]; then
local name
for src in "${BUILDPACKDIR}"/cmd/*; do
Expand Down

0 comments on commit 81c3d69

Please sign in to comment.