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 19dc829
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export LC_ALL=en_US.UTF-8;
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd );

export TIMESTAMP=$(date +"%m-%d-%Y-%H:%M:%S");
export PBF2JSON_BIN="${PBF2JSON_BIN:-"$DIR/../node_modules/pbf2json/build/pbf2json.linux-x64"}";
export PBF2JSON_FILENAME=$(node -e "console.log(require('util').format('pbf2json.%s-%s', os.platform(), os.arch()))")
export PBF2JSON_BIN="${PBF2JSON_BIN:-"$DIR/../node_modules/pbf2json/build/$PBF2JSON_FILENAME"}";

# location of data files
export WORKINGDIR="${WORKINGDIR:-"/mnt/pelias"}";
Expand Down

0 comments on commit 19dc829

Please sign in to comment.