Skip to content

Commit

Permalink
make get-shit-done work with symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Weiske committed Jan 2, 2013
1 parent 6a24eaa commit 326feb9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion get-shit-done
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/sh

EXT=".php"
DIRNAME=$(dirname $0)
file="`readlink -f "$0"`"
dir="`dirname "$file"`"
DIRNAME="`readlink -f "$dir"`"

if [ `whoami` != "root" ]
then
Expand Down

0 comments on commit 326feb9

Please sign in to comment.