Skip to content

Commit

Permalink
feat(multiarch): correctly detect pbf2json binary
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink committed Dec 1, 2023
1 parent 9e33c40 commit 81608b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/conflate_osm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd );
# ---- pbf2json ----

# location of pbf2json binary
PBF2JSON_BIN=${PBF2JSON_BIN:-"$DIR/../node_modules/pbf2json/build/pbf2json.linux-x64"};
PBF2JSON_FILENAME=$(node -e "console.log(require('util').format('pbf2json.%s-%s', os.platform(), os.arch()))")
PBF2JSON_BIN=${PBF2JSON_BIN:-"$DIR/../node_modules/pbf2json/build/$PBF2JSON_FILENAME"};

# ensure pbf2json exists and is executable
if [[ ! -f $PBF2JSON_BIN || ! -x $PBF2JSON_BIN ]]; then
Expand Down

0 comments on commit 81608b5

Please sign in to comment.