mirror of
https://github.com/Brandon-Rozek/website.git
synced 2024-11-09 10:40:34 -05:00
17 lines
424 B
Bash
Executable file
17 lines
424 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# 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
|