mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
1e858eae35
This demonstrates that we only write control sequences when interactive.
17 lines
444 B
Fish
17 lines
444 B
Fish
#RUN: %fish -C 'set -l fish %fish' %s
|
|
#REQUIRES: msgfmt --help
|
|
|
|
set -l fail_count 0
|
|
for file in $FISH_SOURCE_DIR/po/*.po
|
|
# We only check the format strings.
|
|
# Later on we might do a full "--check" to also check the headers.
|
|
msgfmt --check-format $file
|
|
or set fail_count (math $fail_count + 1)
|
|
end
|
|
|
|
# Prevent setting timestamp if any errors were encountered
|
|
if test "$fail_count" -gt 0
|
|
exit 1
|
|
end
|
|
|
|
# No output is good output
|