Permalink
Browse files

Use '-a' (short and more compatible form of '--multiple') option for …

…basename.
  • Loading branch information...
1 parent 8f8b98d commit 3e5077983e3cdfa09e741978f8c4fb7150c65011 Vladimir Chizhov committed May 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/mad
View
@@ -21,7 +21,7 @@ list_pages() {
test ! -z $path \
&& test -d $path \
&& find $path -type f -print0 \
- | xargs -0 basename \
+ | xargs -0 basename -a \
| grep -iv 'readme*' \
| grep '.md$' \
| perl -pe 's|^(.*)\.md$| \1|;'

0 comments on commit 3e50779

Please sign in to comment.