btrfs-progs: tests: fix _is_file_or_command detection
commitfb0d53a9377351d2875bde422e11b1213caf0b48
authorDavid Sterba <dsterba@suse.com>
Fri, 25 Aug 2017 13:44:24 +0000 (25 15:44 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 25 Aug 2017 13:58:05 +0000 (25 15:58 +0200)
tree3d9e125e62e7afa7b6cf184eb2553886e5052ea1
parentffb2878e1ee4620fc2e6e99f20841087bb717080
btrfs-progs: tests: fix _is_file_or_command detection

type -p returns an empty string for nonexistent commands, but the -f
test on an empty string does not behave the same on all shells. To be
safe, use the quoted value.

Signed-off-by: David Sterba <dsterba@suse.com>
tests/common