My current attempt is to run a shell script when the workflow finishes, but it seems to always pass the argument to the script even without me using it in the script. My script is very simple.
- Code: Select all
diskutil unmount /dev/disk2
The error I get is "Error Processing file on the file Floppy Disk". The steps before the script copy the files, then rename the folder, so it's obviously passing the path to the newly renamed file to the script.
How can I tell the script to just eject the disk regardless of its name and ignore any arguments passed in?