fixed wc implementation

This commit is contained in:
Emma Tebibyte 2022-11-08 10:16:20 -05:00
parent 5ca13548d7
commit 78e2bcf9ca

View File

@ -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")