Package post-install script weirdness
-
Hi
I have a post install script to move a zip file containing samples to the User sample folder and it works fine but here's the odd thing; I can remove it using rm but it won't extract using unzip.
cd /Users/${USER}... unzip file.zip #rm file.zip
does nothing
cd /Users/${USER}... unzip file.zip rm file.zip
removes the file
I have used unzip in another post-install script and it worked without problems.
As ever, any thoughts gratefully received.
Thanks
Mike
-
Does it work when you run the command manually?
-
@d-healey It had done in the other script I had but not in this one... when I checked, the zip was only 4kB!
Reworked the script and now it's all working; moves the sample zip, extracts it, deletes the zip and then deletes the temp folder that it installs to.
Thanks for nudging me in the right direction