Skip to content

Instantly share code, notes, and snippets.

@jforge
Last active March 18, 2016 07:14
Show Gist options
  • Save jforge/d14ead96dd81769fc7e8 to your computer and use it in GitHub Desktop.
Save jforge/d14ead96dd81769fc7e8 to your computer and use it in GitHub Desktop.
ivy storage sha1 fixes (bash)
for I in `find . -name ivy.xml -o -name *.zip -o -name *.jar`; do SHA1SUM=`sha1sum $I | cut -c1-40`; STORED_SHA1=`cat $I.sha1`; if [ "$STORED_SHA1" != "$SHA1SUM" ]; then echo "NOT OK - $I: $STORED_SHA1 != $SHA1SUM"; echo $SHA1SUM > $I.sha1; if [ `cat $I.sha1` == "$SHA1SUM" ]; then echo "FIXED"; fi; fi; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment