Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 849fbe4

Browse files
matthewpoerclareliguori
authored andcommitted
More portable setup scripts (#22)
* update shebang * busybox and ash and others don't use BASH_SOURCE, but this is all Golang so we can assume $GOPATH is set
1 parent 56bdbdd commit 849fbe4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/build_binary.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#!/bin/bash
1+
#!/usr/bin/env sh
22

33
set -e
44

55
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
66
# SPDX-License-Identifier: MIT-0
77

88
# Normalize to working directory being build root (up one level from ./scripts)
9-
ROOT=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )
9+
ROOT="$GOPATH/src/github.com/awslabs/aws-lambda-container-image-converter/"
1010
cd "${ROOT}"
1111

1212
# Builds the binary from source in the specified destination paths.

0 commit comments

Comments
 (0)