INNER CODE UNIT · Rust
abort
ralfbiedert/cheats.rs · scripts/ci_pack_public.sh:22
function abort() {
echo "Error executing previous command."
exit 1
}
cd "$PROJECT_ROOT"
mkdir -p "$PROJECT_ROOT/$FOLDER_DIST"
# Posthtml plugins being the pile of garbage they are, we need to manually copy files
# to these paths (no, setting a HTML root and using proper paths does NOT work ...)
cp public/*.css public/legal
cp public/*.js public/legal
cp public/*.css public/faq
cp public/*.js public/faq
# Now run Posthtml
npm run posthtml || abort # Cleanup and minify output