So I am new to bash scripting, and I am not familiar with the syntax. I cannot figure out how will combine the following 3 scripts or if it is even possible. Any insight and help would be much appreciated!
Script 1:
cd /Users/Shared &&curl -O https://download.support.xerox.com/pub/drivers/ALB80XX/drivers/macOSx11/pt_BR/XeroxDrivers_5.14.0_2444.dmg
Script 2:
MOUNTDIR=$(echo hdiutil mount XeroxDrivers_5.14.0_2444.dmg | tail -1 | awk '{$1=$2=""; print $0}'
| xargs -0 echo)
&& sudo installer -pkg “${MOUNTDIR}/”*.pkg -target /
Script 3:
lpadmin -x PRINTER01 && lpadmin -x PRINTER02 && lpadmin -x PRINTER03
I tried rewriting the scripts and creating functions but with no avail.
user24755092 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1