Verified Commit dd619808 authored by Haelwenn's avatar Haelwenn
Browse files

build.sh: Error out when TARGET isn’t a pleroma repository

Closes: #55
parent b0fc8b08
Pipeline #8360 passed with stage
in 3 minutes and 39 seconds
#!/bin/sh
TARGET="${TARGET:-../pleroma}" # Where pleroma’s 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
rm -rf public/packs public/assets
......
Supports Markdown
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