Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- os=$(lsb_release -rs)
- echo "$os"
- if [[ "$os" = "16.04" ]] ; then
- echo "g"
- elif [[ "$os" = "14.04" ]] ; then
- echo "b"
- else
- echo "c"
- fi
- #!/bin/bash
- os=$(lsb_release -rs)
- echo "$os"
- case "$os" in
- "16.04") echo "g" ;;
- "14.04") echo "b" ;;
- *) echo "c" ;;
- esac
Add Comment
Please, Sign In to add comment