JamieMason / ImageOptim-CLI

Make optimisation of images part of your automated build process
https://foldleft.io/image-tools
MIT License
3.45k stars 126 forks source link

Wrong permissions on macOS Sierra #130

Closed matchatype closed 7 years ago

matchatype commented 7 years ago

Installed imageoptim globally via yarn and running it with the following command: imageoptim --image-alpha --quit --no-color --directory ~/tmp returns:

rm: /var/folders/sc/w93rsmx56zjf1ctywzwf0ccc0000gn/T/imageoptim-cli/png/Users/andrea/Desktop: Permission denied
rm: /var/folders/sc/w93rsmx56zjf1ctywzwf0ccc0000gn/T/imageoptim-cli/png/Users/andrea: Directory not empty
rm: /var/folders/sc/w93rsmx56zjf1ctywzwf0ccc0000gn/T/imageoptim-cli/png/Users: Directory not empty
rm: /var/folders/sc/w93rsmx56zjf1ctywzwf0ccc0000gn/T/imageoptim-cli/png: Directory not empty
rm: /var/folders/sc/w93rsmx56zjf1ctywzwf0ccc0000gn/T/imageoptim-cli: Directory not empty
Running ImageAlpha...
Running ImageOptim...
TOTAL was: 67.095kb now: 10.537kb saving: 56.558kb (84.00%) quality: 98.7492%
rm: /var/folders/sc/w93rsmx56zjf1ctywzwf0ccc0000gn/T/imageoptim-cli/png/Users/andrea/Desktop: Permission denied
rm: /var/folders/sc/w93rsmx56zjf1ctywzwf0ccc0000gn/T/imageoptim-cli/png/Users/andrea: Directory not empty
rm: /var/folders/sc/w93rsmx56zjf1ctywzwf0ccc0000gn/T/imageoptim-cli/png/Users: Directory not empty
rm: /var/folders/sc/w93rsmx56zjf1ctywzwf0ccc0000gn/T/imageoptim-cli/png: Directory not empty
rm: /var/folders/sc/w93rsmx56zjf1ctywzwf0ccc0000gn/T/imageoptim-cli: Directory not empty
matchatype commented 7 years ago

My bad 🙄 Simply: rm -rf /var/folders/sc/w93rsmx56zjf1ctywzwf0ccc0000gn/T/imageoptim-cli/did the trick.

JamieMason commented 7 years ago

No worries