Skip to content

Commit

Permalink
Merge pull request #5860 from ipfs/fix/5859
Browse files Browse the repository at this point in the history
make: fix building source tarball on macos
  • Loading branch information
Stebalien authored Dec 20, 2018
2 parents 9e8cc06 + daff837 commit c17aaa6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/maketarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
set -euo pipefail
IFS=$'\n\t'

OUTPUT="$(readlink -f "${1:-go-ipfs-source.tar.gz}")"
# readlink doesn't work on macos
OUTPUT="${1:-go-ipfs-source.tar.gz}"
if ! [[ "$OUTPUT" = /* ]]; then
OUTPUT="$PWD/$OUTPUT"
fi

TMPDIR="$(mktemp -d)"
NEWIPFS="$TMPDIR/src/github.com/ipfs/go-ipfs"
Expand Down

0 comments on commit c17aaa6

Please sign in to comment.