I'm trying to install to an alternative location because my system drive is almost full.
The output copied from terminal
➜ Legend of Grimrock sudo ./LegendOfGrimrock-Linux-2012-12-22.sh
[sudo] password for johnny:
Verifying archive integrity... All good.
Uncompressing Installer for Legend of Grimrock...................
Uncompressing sub archive....................................................................................................
Collecting info for this system...
Operating system: linux
CPU Arch: x86
Nixstaller version 0.5.2, Copyright (C) 2006 - 2011 of Rick Helmus
Nixstaller comes with ABSOLUTELY NO WARRANTY.
Nixstaller is free software, and you are welcome to redistribute it
under certain conditions; see the about section for details.
cp: cannot copy a directory, `/tmp/selfgz2525/pkg/files/Grimrock', into itself, `Grimrock/Grimrock/Grimrock'
cp: will not create hard link `Grimrock/Grimrock/of' to directory `Grimrock/Grimrock/of'
^CSignal caught, cleaning up
I got the same kind of an error, "cp: cannot overwrite directory ‘/home/username/legendofgrimrock/Grimrock’ with non-directory", even though I didn't have path names that contained spaces. It took some time to find out that the reason seems to be that I used the same directory for both the data and the binary file locations. Logically thinking it did not look like the root cause to me at first, but apparently the installer will eventually fail when it tries to run those cp commands.
At one phase the installer copies files/dirs pkg/bins/* from the temporary directory the installer has created. Notice that in pkg/bins there is a symbolic link named Grimrock. At this phase cp command fails because the installer has already created a directory <installdir>/Grimrock before these cp commands.
The solution could be that the install script allows using the same directories for data and binary directories. Or, the installer makes it an error if the user given directories are the same.