Skip to content

Commit

Permalink
Make PROGDIR calculation more portable (#49)
Browse files Browse the repository at this point in the history
This method was tested and works on OSX and Linux.
  • Loading branch information
metajiji authored and greg0ire committed Apr 11, 2017
1 parent e6c2db6 commit 0b1e778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
. .git/hooks/hook_switcher.sh

readonly PROGNAME=$(basename "$0")
readonly PROGDIR=$(readlink -m "$(dirname "$0")")
readonly PROGDIR="$(cd "$(dirname "$0")"; pwd)"

main() {
local hookName
Expand Down

0 comments on commit 0b1e778

Please sign in to comment.