If prepare_assets is launched in Debian distro uses yarnpkg instead yarn
This commit is contained in:
parent
e74a3a808f
commit
2e33f9ec52
|
|
@ -4,7 +4,9 @@ set -e
|
|||
DIR=$(dirname "$0")
|
||||
|
||||
# install node modules
|
||||
yarn install --pure-lockfile --production
|
||||
YARN=yarn
|
||||
[ -x /usr/bin/lsb_release ] && [ -n "`lsb_release -i | grep Debian`" ] && YARN=yarnpkg
|
||||
$YARN install --pure-lockfile --production
|
||||
|
||||
# Copy admin-lte dist
|
||||
mkdir -p "${DIR}/assets/dist/js" "${DIR}/assets/dist/css" && \
|
||||
|
|
|
|||
Loading…
Reference in New Issue