carrotsearch/smartsprites — pull request #11 by LoicMahieu (2014-08-04 14:07:39+00:00)
Title: Fix sh script when under absolute spaced directory

Use case:
```bash
> pwd
/tmp/some path with spaces

> ./smartsprites-0.2.10/smartsprites.sh
sage: smartsprites [CSS-FILES ...] [...]

> # Ok, works!
> # Let's try with absolute path

> /tmp/some\ path\ with\ spaces/smartsprites-0.2.10/smartsprites.sh
usage: dirname path
Exception in thread "main" java.lang.NoClassDefFoundError: org/carrot2/labs/smartsprites/SmartSprites
Caused by: java.lang.ClassNotFoundException: org.carrot2.labs.smartsprites.SmartSprites
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

```