Skip to content

Commit 0b1e778

Browse files
metajijigreg0ire
authored andcommitted
Make PROGDIR calculation more portable (#49)
This method was tested and works on OSX and Linux.
1 parent e6c2db6 commit 0b1e778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/configure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
. .git/hooks/hook_switcher.sh
33

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

77
main() {
88
local hookName

0 commit comments

Comments
 (0)