I want to install all of my available printers on my mac without having to click on each printer. Im having trouble getting my simple script to work, what am I missing? Thanks.

#!/bin/sh

for printer in `iprntcmd -L printers.portlandschools.local | grep -i "ipp"`
do
iprntcmd -a $printer
done
exit 0