a guest Dec 7th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- loc=$(dirname $0)
- echo $loc
- if [ -d "$loc/../site-cookbooks" ]; then
- for i in $loc/../site-cookbooks/*; do
- c=$(basename $i)
- if [ -f "$i/metadata.rb" ]; then
- v=$(grep '^version' $i/metadata.rb | tr -s ' ' ' ' | cut -d' ' -f 2)
- echo "$c $v"
RAW Paste Data