Hi All,
I'm not much of a scripter, but I've put together a script for dockutil and ensured it's installed on all my machines. I'm running this script that seems to be giving me a failure, however, when inspected, it appears to have done everything, can anyone tell me what "Script exit code 1" means and after looking at the code what it would mean that it found no matching processes?
I'd like to get these successful so I'm not left wondering if the install went bad.
Here's the script
#!/bin/bash
user=`ls -l /dev/console | cut -d " " -f 4`
sudo -u $user /usr/local/bin/dockutil --add /Applications/Microsoft Word.app
sudo -u $user /usr/local/bin/dockutil --add /Applications/Microsoft Powerpoint.app
sudo -u $user /usr/local/bin/dockutil --add /Applications/Microsoft Excel.app
sudo killall Dock
Here's the result....
Executing Policy Microsoft Office 365 Volume Installer (applications installation)
Downloading Microsoft Office 2016 Volume Installer.pkg...
Downloading http://jss.insigniam.com/Packages/Microsoft%20Office%202016%20Volume%20Installer.pkg...
Verifying package integrity...
Installing Microsoft Office 2016 Volume Installer [2016-10-28].pkg...
Successfully installed Microsoft Office 2016 Volume Installer [2016-10-28].pkg.
Running script Add Office 365 PP, W, E to Dock...
Script exit code: 1
Script result: No matching processes were found
Error running script: return code was 1