Merge branch 'bugfix/build-sh-missing-directory' into 'rebase/glitch-soc'

Bugfix: build.sh: use TARGET env variable and check it

See merge request pleroma/mastofe!17
This commit is contained in:
Haelwenn 2019-03-07 10:21:53 +00:00
commit 1620b35045

View file

@ -1,5 +1,12 @@
#!/bin/sh
TARGET="../pleroma" # Where pleromas repository is sitting
TARGET="${TARGET:-../pleroma}" # Where pleromas repository is sitting
if [[ ! -d "${TARGET}/priv/static" ]]
then
echo "Error: ${TARGET}/priv/static directory is missing, are you sure TARGET is set to a pleroma repository?"
echo "Info: TARGET=${TARGET}"
exit 1
fi
yarn install -D