From 9a7079190d01c4f831d35c3afd4af61a6dbe61ba Mon Sep 17 00:00:00 2001 From: wyahiro Date: Fri, 18 Jan 2019 10:24:14 +0900 Subject: [PATCH] change validation of buildfile --- share/functions/__fish_complete_ant_targets.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 share/functions/__fish_complete_ant_targets.fish 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