diff options
author | 2006-02-04 07:29:39 +1000 | |
---|---|---|
committer | 2006-02-04 07:29:39 +1000 | |
commit | 727472d5bdb3a22bad4075bb01cea224c18575ff (patch) | |
tree | 32e8cd2ed4a809b1224d79a509d6c99b9981fd9e /init | |
parent | 3616a23bdd86a870f2173fa84de5080135fd9827 (diff) |
Correct broken test for gettext command
darcs-hash:20060203212939-ac50b-8a99c32124c6b643443bc7295df91d6f0c903247.gz
Diffstat (limited to 'init')
-rw-r--r-- | init/fish.in | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/init/fish.in b/init/fish.in index 27b19012..f47a695f 100644 --- a/init/fish.in +++ b/init/fish.in @@ -77,13 +77,14 @@ end # used by other init files. # -if test 1 = "@HAVE_GETTEXT@"; and which gettext >/dev/null ^/dev/null - function _ -d "Alias for the gettext command" - gettext fish $argv - end -else - function _ -d "Alias for the gettext command" - printf "%s" $argv +function _ -d "Alias for the gettext command" + printf "%s" $argv +end +if test 1 = "@HAVE_GETTEXT@" + if which gettext ^/dev/null >/dev/null + function _ -d "Alias for the gettext command" + gettext fish $argv + end end end |