run.sh 408 B

123456789101112131415161718
  1. source /etc/tabannusi/config.sh
  2. cd $repository
  3. log1=`git log -1 --pretty=%B`
  4. log2=`cat $temp/q.txt`
  5. log1_copy=$log1
  6. if [ "$log1" = "$log2" ]
  7. then
  8. q=1
  9. else
  10. echo $log1 >$temp/q.txt
  11. remove_char="_"
  12. log1=${log1//" "/$remove_char}
  13. cp -R $repository $build_path/$log1
  14. cd $build_path/$log1
  15. /etc/tabannusi/build.sh &>/tmp/q.tmp
  16. echo "this build log for "$log1_copy|mutt -a /tmp/q.tmp -s "build log" -- $email
  17. fi