Skip to content

Commit

Permalink
Only output 'Generated by gibo' header once
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwhitaker committed Feb 20, 2022
1 parent 08affbb commit bcf7ce9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gibo
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ dump() {
language_file_relative=${language_file#"$local_repo/"}

if [ -n "$language_file" ]; then
echo "### Generated by gibo (https://github.com/simonwhitaker/gibo)"
echo "### $remote_web_root/$language_file_relative"
echo
cat "$language_file"
Expand Down Expand Up @@ -136,6 +135,7 @@ while [ $# -gt 0 ]; do
;;
dump )
if [ $# -gt 1 ]; then
echo "### Generated by gibo (https://github.com/simonwhitaker/gibo)"
should_dump=1
else
usage
Expand Down
2 changes: 1 addition & 1 deletion tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if [[ $lines -ne $expected ]]; then
fi

# `gibo dump Foo Bar` outputs 16 lines
expected=16
expected=15
lines=$($gibo dump Foo Bar | wc -l)
if [[ $lines -ne $expected ]]; then
fail "Expected $expected lines in output of 'gibo dump Foo Bar', got $lines"
Expand Down

0 comments on commit bcf7ce9

Please sign in to comment.