1
0
mirror of https://github.com/rancher/os.git synced 2025-06-04 04:40:16 +00:00
os/scripts/help
2016-05-22 23:16:27 -07:00

17 lines
253 B
Bash
Executable File

#!/bin/bash
cd $(dirname $0)
echo Targets:
for i in *; do
if [ ! -x $i ] || [ ! -f $i ]; then
continue
fi
MSG=$(grep '^# help:' $i)
if [ -n "$MSG" ]; then
echo " " ${i}: $(echo $MSG | sed 's/# help://')
fi
done