diff --git a/functions/__fisher_path_make.fish b/functions/__fisher_path_make.fish index b1b5899..657383d 100644 --- a/functions/__fisher_path_make.fish +++ b/functions/__fisher_path_make.fish @@ -1,14 +1,16 @@ function __fisher_path_make -a path - if test -s $path/Makefile -o -s $path/makefile - pushd $path - - set -e argv[1] - - if not make $argv - popd - return 1 - end - - popd + if test ! -s $path/Makefile -o ! -s $path/makefile + return end + + pushd $path + + set -e argv[1] + + if not make $argv + popd + return 1 + end + + popd end