mirror of
https://github.com/jorgebucaran/fisher
synced 2024-09-10 15:07:40 +02:00
Do not fail if Makefile is missing or empty w/ support for fish 2.1.2
This commit is contained in:
parent
2162f34d90
commit
8468d70045
1 changed files with 13 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue