Guest User

Untitled

a guest
Feb 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #!/bin/bash
  2. os=$(lsb_release -rs)
  3. echo "$os"
  4. if [[ "$os" = "16.04" ]] ; then
  5. echo "g"
  6. elif [[ "$os" = "14.04" ]] ; then
  7. echo "b"
  8. else
  9. echo "c"
  10. fi
  11.  
  12. #!/bin/bash
  13. os=$(lsb_release -rs)
  14. echo "$os"
  15. case "$os" in
  16. "16.04") echo "g" ;;
  17. "14.04") echo "b" ;;
  18. *) echo "c" ;;
  19. esac
Add Comment
Please, Sign In to add comment