fix: Correct the comparison displayed on diff

This commit is contained in:
Carlos Solís 2025-03-05 09:20:23 -06:00
parent eedc7f0472
commit 477637f7e4

View file

@ -7,7 +7,7 @@ for i in ./*.sh; do
find /etc/cron.* -iname "${i_tmp%.sh}" | while read -r j; do
echo "${j}"
diff <(sed -e "s/friendica.example.net/hub.azkware.net/g" -e "s/1\:-\"0\"/1\:-\"1\"/g" -e "s/#&>/\&\>/g" "${i}") "${j}"
sed -e "s/friendica.example.net/hub.azkware.net/g" -e "s/#&>/\&\>/g" "${i}" | sudo tee "${j}" &>/dev/null
sed -e "s/friendica.example.net/hub.azkware.net/g" -e "s/1\:-\"0\"/1\:-\"1\"/g" -e "s/#&>/\&\>/g" "${i}" | sudo tee "${j}" &>/dev/null
done
find ../../Scripts -iname "${i_tmp}" | while read -r k; do
echo "${k}"