mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-23 04:51:16 -03:00
change validation of buildfile
This commit is contained in:
3
share/functions/__fish_complete_ant_targets.fish
Normal file → Executable file
3
share/functions/__fish_complete_ant_targets.fish
Normal file → Executable file
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user