diff --git a/share/functions/__fish_complete_ant_targets.fish b/share/functions/__fish_complete_ant_targets.fish old mode 100644 new mode 100755 index 3203b2060..3c216b044 --- a/share/functions/__fish_complete_ant_targets.fish +++ b/share/functions/__fish_complete_ant_targets.fish @@ -46,7 +46,8 @@ function __fish_complete_ant_targets -d "Print list of targets from build.xml an end set -l tokens $argv - if not set -l buildfile (realpath -eq $buildfile (__get_buildfile $tokens)) + set -l buildfile (realpath -eq $buildfile (__get_buildfile $tokens)) + if [ $status -ne 0 ] return 1 # return nothing if buildfile does not exist end