1
0
mirror of https://github.com/rancher/os.git synced 2025-06-21 04:31:55 +00:00
os/scripts/help
2016-06-15 16:45:05 -07:00

18 lines
260 B
Bash
Executable File

#!/bin/bash
set -e
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