FRET-LibAFL/scripts/check_md_links.sh
Romain Malmain 42b3199807
Change action for MD link checks (#2563)
* change MD link action checker

* fix md files
2024-09-26 16:29:32 +02:00

18 lines
408 B
Bash
Executable File

#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
LIBAFL_DIR=$(realpath "$SCRIPT_DIR/..")
echo "[*] Checking MD links..."
cd "$LIBAFL" || exit 1
if ! command -v linkspector > /dev/null; then
echo "Error: install linkspector to check MD file links."
exit 1
fi
linkspector check -c "${LIBAFL_DIR}/.github/workflows/.linkspector.yml" || exit 1
echo "[*] Done :)"