mirror of
https://github.com/rancher/os.git
synced 2025-05-09 16:46:21 +00:00
17 lines
253 B
Plaintext
17 lines
253 B
Plaintext
|
#!/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
|