Created
August 8, 2014 15:58
-
-
Save maurice-audin/027c3dc5482d2d90bc12 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
if [ $# -ne 1 ]; then | |
echo "usage: debversion package.deb" | |
exit 1 | |
fi | |
if [ ! -e $1 ]; then | |
echo "file not found" | |
exit 1 | |
fi | |
ar x $1 control.tar.gz | |
tar -xzf control.tar.gz ./control | |
cat control | grep Version | |
rm control.tar.gz control |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment