website/build.sh

18 lines
424 B
Bash
Raw Normal View History

2024-07-28 23:04:17 -04:00
#!/usr/bin/env bash
2024-07-28 22:59:08 -04:00
# Generate toot markdown files
pushd content/toots/.scripts > /dev/null
generate_exe="./target/release/generate_md"
# Check if the file exists and is executable
if [ -e "$generate_exe" ] && [ -x "$generate_exe" ]; then
./target/release/generate_md
else
echo "The executable '$generate_exe' does not exist."
echo "Perhaps run cargo build in 'content/toots/.scripts'?"
fi
popd > /dev/null