Error: ./osx: line 222: [: too many arguments #56

verysofttoiletpaper opened this Issue Apr 25, 2012 · 2 comments


None yet
3 participants

I'm getting an error on this line:

[ -e ~/Library/Application\ Support/Dock/*.db ] && rm ~/Library/Application\ Support/Dock/*.db

Mac OS X 10.7


mathiasbynens commented Apr 25, 2012

Hrm, I cannot reproduce this error… Anyone?

I guess the problem is that there are several *.db files in ~/Library/Application\ Support/Dock/. When there are, the star gets expanded into several arguments to test -e, which causes the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment