Failed to run transaction hooks after last update

I updated Garuda yesterday, after not running upgrades since the 1st of this month. Now, when I try to run pacman/upgrade I am seeing the following error:

error: hook /etc/pacman.d/hooks/pamac.hook line 10: invalid value /bin/sh -c "zcat /usr/share/app-info/xmls/community.xml.gz | sed 's|<em>||g;s|<\/em>||g;' | gzip > "new.xml.gz"
error: failed to commit transaction (failed to run transaction hooks)
Errors occurred, no packages were upgraded.

I've searched google, cant find anything on this particular error, and I am quite new to arch so I am unable to identify it. I rolled back to a snapshot before the update, tried updating again and am seeing the same message.

A post was merged into an existing topic: Failed to commit transaction