Guest User

Untitled

a guest
Dec 7th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. loc=$(dirname $0)
  4. echo $loc
  5.  
  6. if [ -d "$loc/../site-cookbooks" ]; then
  7. for i in $loc/../site-cookbooks/*; do
  8. c=$(basename $i)
  9. if [ -f "$i/metadata.rb" ]; then
  10. v=$(grep '^version' $i/metadata.rb | tr -s ' ' ' ' | cut -d' ' -f 2)
  11. fi
  12. echo "$c $v"
  13. done
  14. fi
Add Comment
Please, Sign In to add comment