diff options
Diffstat (limited to 'tests/common')
-rw-r--r-- | tests/common | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/common b/tests/common index a1ab3e03..d0324a62 100644 --- a/tests/common +++ b/tests/common @@ -35,7 +35,8 @@ _is_file_or_command() if [ -f "$msg" -o -d "$msg" -o -b "$msg" ]; then return 0 fi - if [ -f $(type -p "$msg") ]; then + msg=$(type -p "$msg") + if [ -f "$msg" ]; then return 0 fi return 1 |