Skip to content

Commit

Permalink
display -> display_file
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Apr 14, 2012
1 parent dff67d3 commit 20a29ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/mad
Expand Up @@ -6,7 +6,7 @@ VERSION="0.0.1"
# Display <file>
#

display() {
display_file() {
cat $1 \
| perl -pe 's|^#+ *(.+)|\e[1m\1\e[0m|g' \
| perl -pe 's|`(.+?)`|\e[90m\1\e[0m|g' \
Expand All @@ -24,7 +24,7 @@ display() {
#

display_mad_usage() {
display $(dirname $0)/../share/mad/mad.md
display_file $(dirname $0)/../share/mad/mad.md
exit
}

Expand All @@ -42,6 +42,6 @@ case $1 in
display_mad_usage
;;
*)
display $1
display_file $1
;;
esac

0 comments on commit 20a29ea

Please sign in to comment.