Find the location when the executable is not a symlink
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 9 Oct 2012 09:13:40 +0000 (11:13 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 9 Oct 2012 09:13:40 +0000 (11:13 +0200)
commit891773ec2a448992e19cb1d5b3d894abee88ce23
tree33e50a2ff8d795b6d1431cd1b98fd9d9470250ea
parent9e5c5dcd87b542444b17388ea86cb34bcdca29ba
Find the location when the executable is not a symlink

When finding the path to the real `rcs-fast-export.rb`, we can't use
`File.readlink` on its own because it will fail with `Errno::EINVAL` if
`__FILE__` is not a symlink. Rescue with `__FILE__` to catch this case.
rcs-fast-export.rb