Skip to content

Instantly share code, notes, and snippets.

@dmerrick
Created March 27, 2012 14:21
Show Gist options
  • Save dmerrick/2216306 to your computer and use it in GitHub Desktop.
Save dmerrick/2216306 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -x # print every command before it runs
set -e # exit if any command fails
mkdir -p /tmp/katama_chef/
git checkout katama_chef
cp -r cookbooks/$1 /tmp/katama_chef/
mkdir -p /tmp/hc_production/
git checkout hc_production
cp -r cookbooks/$1 /tmp/hc_production/
diff -rq /tmp/katama_chef/$1 /tmp/hc_production/$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment