Total rewrite #15

Merged
emma merged 14 commits from rewrite into main 2023-03-22 12:42:30 -06:00
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 \ /usr/local/share/xdg-sanity/*-mime.toml \
/dev/null /dev/null
do 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 while ! [ "$i" = 0 ]; do
if [ "$MATCH" = "$(tomcat replace.urls[$i] $file)" ]; then if [ "$MATCH" = "$(tomcat replace.urls[$i] $file)" ]; then
MIME=$(tomcat with.mime "$file") MIME=$(tomcat with.mime "$file")
@ -87,7 +88,7 @@ while test -n "$1"; do
/usr/local/share/xdg-sanity/*-replace.toml \ /usr/local/share/xdg-sanity/*-replace.toml \
/dev/null /dev/null
do 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 while ! [ "$i" = 0 ]; do
if [ "$MATCH" = "$(tomcat replace.urls[$i] $file)" ]; then if [ "$MATCH" = "$(tomcat replace.urls[$i] $file)" ]; then
URL=$(tomcat with.url "$file") URL=$(tomcat with.url "$file")