Skip to content
Browse files

Use `--multiple` option for basename.

Signed-off-by: Vladimir Chizhov <master@mirlord.com>
  • Loading branch information...
1 parent 16f9472 commit e8fd1bf36af63163f864ebe11b140110c665b63f @mirlord mirlord committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/mad
View
2 bin/mad
@@ -21,7 +21,7 @@ list_pages() {
test ! -z $path \
&& test -d $path \
&& find $path -type f -print0 \
- | xargs -0 basename \
+ | xargs -0 basename --multiple \
| grep -iv 'readme*' \
| grep '.md$' \
| perl -pe 's|^(.*)\.md$| \1|;'

0 comments on commit e8fd1bf

Please sign in to comment.
Something went wrong with that request. Please try again.