Skip to content

Commit

Permalink
Follow symlinks to find the right path. This will allow symlinking th…
Browse files Browse the repository at this point in the history
…e launcher into /usr/bin and still find the right directory.
  • Loading branch information
Ferk committed Nov 23, 2013
1 parent b5e9d08 commit 62c3af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cataclysm-launcher
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
DIR=`dirname "$0"`
DIR=$(dirname $(readlink -f "$0"))
cd $DIR && ./cataclysm

0 comments on commit 62c3af2

Please sign in to comment.