Files
html/api/v76-scripts/cyber-tips.sh
2026-04-19 16:00:02 +02:00

9 lines
283 B
Bash
Executable File

#!/bin/bash
TIPS=$(find /var/www/html/api -maxdepth 2 -iname "*tips*" 2>/dev/null | head -5)
if [ -z "$TIPS" ]; then
echo "cyber_tips:NONE_CATALOGED"
echo "suggestion:create /api/cyber-tips-catalog.json"
else
echo "$TIPS" | while read f; do echo "tips:$(basename $f)"; done
fi