mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-02-08 05:09:15 +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.
|
# Check for resources.
|
||||||
|
|
||||||
[[ -d "$BIN" ]] || mkdir "$BIN"
|
|
||||||
|
|
||||||
if ! will_minify none && ! command -v shfmt &>/dev/null; then
|
if ! will_minify none && ! command -v shfmt &>/dev/null; then
|
||||||
printc_err "%{RED}Warning: cannot find shfmt. Unable to minify scripts.%{CLEAR}\n"
|
printc_err "%{RED}Warning: cannot find shfmt. Unable to minify scripts.%{CLEAR}\n"
|
||||||
OPT_MINIFY=none
|
OPT_MINIFY=none
|
||||||
fi
|
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.
|
# Find files.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user