* lib/missing: If the code trying to run GNU tar is reached,
don't continue if the invoked GNU tar program fails, as there
is little point in doing so (and can even be confusing and
counter-productive).
+2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ missing: if GNU tar exists but fails when called, give up
+ * lib/missing: If the code trying to run GNU tar is reached,
+ don't continue if the invoked GNU tar program fails, as there
+ is little point in doing so (and can even be confusing and
+ counter-productive).
+
2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
missing: miscellaneous fixlets
tar*)
shift
- # We have already tried tar in the generic part.
- # Look for gnutar/gtar before invocation to avoid ugly error
- # messages.
+ # We have already tried tar in the generic part. So try with GNU tar.
+ # Look for gnutar/gtar before invocation to avoid ugly error messages.
if (gnutar --version) > /dev/null 2>&1; then
- gnutar "$@" && exit 0
+ exec gnutar "$@"
fi
if (gtar --version) > /dev/null 2>&1; then
- gtar "$@" && exit 0
+ exec gtar "$@"
fi
firstarg=$1
if shift; then