Skip to content

Commit 727fd32

Browse files
committed
Scripts: Fail if lychee and nbconvert aren't available in the link test.
1 parent 1446461 commit 727fd32

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

brev/test-links.bash

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,26 @@ if [ $# -eq 0 ]; then
4545
usage
4646
fi
4747

48+
# Check for required tools
49+
if ! command -v lychee &> /dev/null; then
50+
echo -e "${RED}Error: lychee is not installed or not in PATH${NC}"
51+
echo "Please install lychee: https://github.com/lycheeverse/lychee"
52+
exit 1
53+
fi
54+
55+
if ! command -v jupyter &> /dev/null; then
56+
echo -e "${RED}Error: jupyter is not installed or not in PATH${NC}"
57+
echo "Please install jupyter: pip install jupyter nbconvert"
58+
exit 1
59+
fi
60+
61+
# Verify jupyter nbconvert is available
62+
if ! jupyter nbconvert --version &> /dev/null; then
63+
echo -e "${RED}Error: jupyter nbconvert is not available${NC}"
64+
echo "Please install nbconvert: pip install nbconvert"
65+
exit 1
66+
fi
67+
4868
TARGET_PATH="$1"
4969

5070
# Get absolute paths

0 commit comments

Comments
 (0)