Hi all,
i'm working on a script that installs only the updates listed in the script parameters $4 to $11
i've got it all working nicely for just one update, it pulls softwareupdate -l, egrep only the updates listed in $4 to $11, then formats the result into an array (with just has the description and no spaces except between each update then installs as below)
update=$( softwareupdate -i -v "${install}" >> "$logpath" )
But if i try to install more than one update it comes back with
'OS X El Capitan Update-10.11.6' 'RAWCameraUpdate6.21-6.21': No such update
if i echo "${install
softwareupdate -i -v 'OS X El Capitan Update-10.11.6' 'RAWCameraUpdate6.21-6.21'
Any ideas why the update binary isn't liking it when using the array variable ?