Skip to content

Commit 86fea83

Browse files
Add APIM_KERNEL_EXISTS
1 parent 832b9bb commit 86fea83

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.devcontainer/post-start-setup.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ else
5151
fi
5252

5353
# Quick Jupyter kernel check
54-
if jupyter kernelspec list 2>/dev/null | grep -q "apim-samples"; then
54+
# Check if kernel exists and store as boolean-like variable using ternary-style
55+
APIM_KERNEL_EXISTS=$(jupyter kernelspec list 2>/dev/null | grep -q "apim-samples" && echo "true" || echo "false")
56+
57+
if [ "$APIM_KERNEL_EXISTS" = "true" ]; then
5558
echo " ✅ Jupyter kernel"
5659
else
5760
echo " ⚠️ Jupyter kernel missing (fallback registration...)"

0 commit comments

Comments
 (0)