mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-01-20 20:28:37 +01:00
developer: Fix build.sh install failing when no PREFIX/bin dir
This commit is contained in:
parent
0d9468e1cf
commit
eb69d61ff8
11
build.sh
11
build.sh
@ -424,13 +424,20 @@ fi
|
||||
# -----------------------------------------------------------------------------
|
||||
# Check for resources.
|
||||
|
||||
[[ -d "$BIN" ]] || mkdir "$BIN"
|
||||
|
||||
if ! will_minify none && ! command -v shfmt &>/dev/null; then
|
||||
printc_err "%{RED}Warning: cannot find shfmt. Unable to minify scripts.%{CLEAR}\n"
|
||||
OPT_MINIFY=none
|
||||
fi
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Check target directories exist.
|
||||
|
||||
[[ -d "$BIN" ]] || mkdir -p "$BIN"
|
||||
|
||||
if "$OPT_INSTALL"; then
|
||||
[[ -d "${OPT_PREFIX}/bin" ]] || mkdir -p "${OPT_PREFIX}/bin"
|
||||
fi
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Find files.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user