Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- CURRENT_VERSION=$(COLUMNS=5 dpkg -l | grep libc6 | cut -d " " -f 4- | tr -d " " | cut -d "-" -f 1 | head -n 1 | cut -d "." -f 2)
- if [ "$CURRENT_VERSION" -lt 19 ]; then
- echo "CURRENT VERSION IS 2.$CURRENT_VERSION - SHOULD BE 2.19"
- exit 2
- else
- echo "CURRENT VERSION (2.$CURRENT_VERSION) IS OK"
- exit 0
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement