Total rewrite #15

Merged
emma merged 14 commits from rewrite into main 2023-03-22 18:42:30 +00:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit 78e2bcf9ca - Show all commits

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