display instructions if gyb is missing

This commit is contained in:
Jonathan Bennett 2019-11-27 11:40:24 -05:00
parent 544daf5756
commit 69ebecaf40
1 changed files with 9 additions and 4 deletions

View File

@ -1,7 +1,12 @@
#!/bin/bash #!/bin/bash
find . -name '*.gyb' | \ if [ ! $(type -P "gyb") ]; then
while read file; do \ echo "gyb not installed. Install via: brew install nshipster/formulae/gyb"
echo "running ${file%.gyb}"; \ exit 1
gyb --line-directive '' -o "${file%.gyb}" "$file"; \ fi
find . -name '*.gyb' |
while read file; do
echo "running ${file%.gyb}";
gyb --line-directive '' -o "${file%.gyb}" "$file";
done done