fixed wc implementation
This commit is contained in:
parent
5ca13548d7
commit
78e2bcf9ca
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user