fixed pt-mest --version

fixed version parsing in parse_options.sh , was incompatible with dash shell script
This commit is contained in:
Frank Cizmich
2014-07-10 17:15:13 -03:00
parent ce0a9b0422
commit cde3e26140
2 changed files with 4 additions and 2 deletions

View File

@@ -76,9 +76,10 @@ usage() {
usage_or_errors() {
local file="$1"
local version=""
if [ "$OPT_VERSION" ]; then
local version=$(grep '^pt-[^ ]\+ [0-9]' "$file")
version=$(grep '^pt-[^ ]\+ [0-9]' "$file")
echo "$version"
return 1
fi