many scripts failed when reading no-version-check from global config file - 1361293

This commit is contained in:
Frank Cizmich
2014-10-06 19:04:49 -02:00
parent 4ba15b4887
commit dc4c506483
17 changed files with 141 additions and 27 deletions

View File

@@ -140,9 +140,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
@@ -364,6 +365,8 @@ _parse_config_files() {
[ "$config_opt" = "" ] && continue
echo "$config_opt" | grep -v 'version-check' >/dev/null 2>&1 || continue
if ! [ "$HAVE_EXT_ARGV" ]; then
config_opt="--$config_opt"
fi