1
0
mirror of https://github.com/rancher/os.git synced 2025-05-09 00:26:21 +00:00
os/scripts/help

18 lines
260 B
Plaintext
Raw Normal View History

2016-05-23 06:11:26 +00:00
#!/bin/bash
set -e
2016-05-23 06:11:26 +00:00
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