Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DIR_LIST=$( find . -maxdepth 1 -type d | cut -d"/" -f 2 | egrep '^[a-zA-Z0-9]+$')
- for DIR in $DIR_LIST ; do
- (
- cd $DIR
- ant
- )
- if [[ ! "$(grep 'BUILD FAILED' ${DIR}/build.log)" ]] ; then
- if [[ -d ../history/$DATA/$DIR ]] ; then
- rm -r ../history/$DATA/$DIR
- fi
- mv $DIR ../history/$DATA/$DIR
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement