Skip to content

Instantly share code, notes, and snippets.

@shwang
Created July 21, 2015 22:02
Show Gist options
  • Save shwang/60a2b6bfe6e00b42bd5f to your computer and use it in GitHub Desktop.
Save shwang/60a2b6bfe6e00b42bd5f to your computer and use it in GitHub Desktop.
#!/bin/sh
for file in *.yml; do
target='/usr/local/etc/rssp/django'
command="sudo diff /home/shwang/eponym/${file} ${target}/${file}"
if `eval "${command} > /dev/null"`; then
echo "${file} is unchanged."
else
echo "${file} has been changed. Here are some raisins:"
eval ${command}
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment