]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
_require_command: quote commands correctly
authorOmer Zilberberg <omzg@plexistor.com>
Tue, 26 May 2015 02:51:57 +0000 (12:51 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 26 May 2015 02:51:57 +0000 (12:51 +1000)
commit262442515c298b40e2b747981ec08daec3b510fb
tree7bda033b35486f1c6c73c122c5ca2b7abb4bb10e
parent02f29ec573e3e724fbc945cc0d0fe8b3c2e29841
_require_command: quote commands correctly

fixes 9435b92 common: _require_command needs to handle parameters

Also quoted $_command because _require_command may be called with an
empty $1 parameter, e.g.:
_require_command "$MY_UTIL_PROG" my_util  # but $MY_UTIL_PROG is empty

[ -x ] returns true.
[ -x "" ] returns false, as required here.

Signed-off-by: Omer Zilberberg <omzg@plexistor.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/rc