Commit d7a6eca3 authored by dragon788's avatar dragon788 Committed by Kazushi (Jam) Marukawa

Support custom user CREW_PREFIX

The `${VAR:-/some/path}` will use the path on the right side if the variable on the left side is null or empty (ie if the user didn't set it).
parent 0e3cef64
...@@ -3,7 +3,7 @@ OWNER="skycocker" ...@@ -3,7 +3,7 @@ OWNER="skycocker"
REPO="chromebrew" REPO="chromebrew"
BRANCH="master" BRANCH="master"
URL="https://raw.githubusercontent.com/$OWNER/$REPO/$BRANCH" URL="https://raw.githubusercontent.com/$OWNER/$REPO/$BRANCH"
CREW_PREFIX=/usr/local CREW_PREFIX=${CREW_PREFIX:-/usr/local}
CREW_LIB_PATH=$CREW_PREFIX/lib/crew/ CREW_LIB_PATH=$CREW_PREFIX/lib/crew/
CREW_CONFIG_PATH=$CREW_PREFIX/etc/crew/ CREW_CONFIG_PATH=$CREW_PREFIX/etc/crew/
CREW_BREW_DIR=$CREW_PREFIX/tmp/crew/ CREW_BREW_DIR=$CREW_PREFIX/tmp/crew/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment