Forgot to use PROFILE variable

This commit is contained in:
Ilya Zverev 2015-04-25 00:25:05 +03:00 committed by Alex Zolotarev
parent a5b881d242
commit 6f4c89043e

View file

@ -40,7 +40,7 @@ if [ "$1" == "prepare" ]; then
echo "threads = $OSRM_THREADS" > "$EXTRACT_CFG"
echo "memory = $OSRM_MEMORY" > "$PREPARE_CFG"
echo "threads = $OSRM_THREADS" >> "$PREPARE_CFG"
PROFILE="$OSRM_PATH/profiles/car.lua"
PROFILE="${PROFILE:-$OSRM_PATH/profiles/car.lua}"
[ $# -gt 1 ] && PROFILE="$2"
[ ! -r "$PROFILE" ] && fail "Lua profile $PROFILE is not found"