daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Dec 7th, 2018 53 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top