diff --git a/xdg-sanity b/xdg-sanity index 6df361a..b9ba416 100755 --- a/xdg-sanity +++ b/xdg-sanity @@ -71,7 +71,8 @@ while test -n "$1"; do /usr/local/share/xdg-sanity/*-mime.toml \ /dev/null do - i=$(tomcat replace.urls "$file" | sed 's/ /\n/g' | xargs wc -l) + i=$(tomcat replace.urls "$file" | sed 's/ /\n/g' | wc -l) + printf "$i\n" while ! [ "$i" = 0 ]; do if [ "$MATCH" = "$(tomcat replace.urls[$i] $file)" ]; then MIME=$(tomcat with.mime "$file") @@ -87,7 +88,7 @@ while test -n "$1"; do /usr/local/share/xdg-sanity/*-replace.toml \ /dev/null do - i=$(tomcat replace.urls "$file" | sed 's/ /\n/g' | xargs wc -l) + i=$(tomcat replace.urls "$file" | sed 's/ /\n/g' | wc -l) while ! [ "$i" = 0 ]; do if [ "$MATCH" = "$(tomcat replace.urls[$i] $file)" ]; then URL=$(tomcat with.url "$file")