Advertisement
Guest User

Untitled

a guest
Jan 28th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #!/bin/bash
  2. 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)
  3. if [ "$CURRENT_VERSION" -lt 19 ]; then
  4. echo "CURRENT VERSION IS 2.$CURRENT_VERSION - SHOULD BE 2.19"
  5. exit 2
  6. else
  7. echo "CURRENT VERSION (2.$CURRENT_VERSION) IS OK"
  8. exit 0
  9. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement