Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ID=$(grep -oP '(?<=^ID=).+' /etc/os-release | tr -d '"')
- NAME=$(grep -oP '(?<=^NAME=).+' /etc/os-release | tr -d '"')
- VERSION=$(grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"')
- echo " puppy id -> $ID"
- echo " puppy version -> $VERSION"
- echo " puppy name -> $NAME"
- if [[ ${NAME} == "Puppy" ]] ; then
- echo "Its a puppy"
- else
- echo " This script is only for Puppy OS "
- fi
Add Comment
Please, Sign In to add comment