mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Correct broken test for gettext command
darcs-hash:20060203212939-ac50b-8a99c32124c6b643443bc7295df91d6f0c903247.gz
This commit is contained in:
parent
3616a23bdd
commit
727472d5bd
1 changed files with 8 additions and 7 deletions
15
init/fish.in
15
init/fish.in
|
@ -77,13 +77,14 @@ end
|
||||||
# used by other init files.
|
# used by other init files.
|
||||||
#
|
#
|
||||||
|
|
||||||
if test 1 = "@HAVE_GETTEXT@"; and which gettext >/dev/null ^/dev/null
|
function _ -d "Alias for the gettext command"
|
||||||
function _ -d "Alias for the gettext command"
|
printf "%s" $argv
|
||||||
gettext fish $argv
|
end
|
||||||
end
|
if test 1 = "@HAVE_GETTEXT@"
|
||||||
else
|
if which gettext ^/dev/null >/dev/null
|
||||||
function _ -d "Alias for the gettext command"
|
function _ -d "Alias for the gettext command"
|
||||||
printf "%s" $argv
|
gettext fish $argv
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue