Guest User

Untitled

a guest
May 28th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. path="../../version.txt"
  4.  
  5. source $path
  6. major1=$(echo $version | cut -f1 -d.)
  7. major2=$(echo $version | cut -f2 -d.)
  8. minor=$(echo $version | cut -f3 -d.)
  9. build=$(echo $version | cut -f4 -d.)
  10. build=$((build+1))
  11. > $path
  12. version="version=$major1.$major2.$minor.$build"
  13. echo "$version" >> $path
  14. echo $build
Add Comment
Please, Sign In to add comment