Displaying 1 result from an estimated 1 matches for "try_help".
Did you mean:
r_help
2010 Mar 10
1
[PATCH] Fixes how o-process-config handles missing field names or values.
...++ b/scripts/ovirt-process-config
@@ -9,6 +9,8 @@
ME=$(basename "$0")
warn() { printf '%s: %s\n' "$ME" "$*" >&2; }
+die() { warn "$*"; exit 1; }
+
try_h() { printf "Try \`$ME -h' for more information.\n" >&2; exit 1;}
try_help() { printf "Usage: \`$ME [config] [module output] [config output]\n" >&2; exit 1;}
@@ -55,20 +57,41 @@ networking=$(awk '/^[ \t]*ifcfg=/ {
field=values[1]
value=values[2]
+ if(length(field) == 0) {
+ print "Missing fi...