Skip to content

Commit

Permalink
Fix npryce#31 - adr-config reports absolute paths
Browse files Browse the repository at this point in the history
... when running from the source directory
  • Loading branch information
npryce committed Jun 26, 2018
1 parent a158c06 commit 3e0d778
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/adr-config
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Config for when running from the source directory.
echo 'adr_bin_dir="'"$(dirname $0)"'"'
echo 'adr_template_dir="'"$(dirname $0)"'"'

basedir=$(cd -L $(dirname $0) >/dev/null 2>&1 && pwd -L)

echo 'adr_bin_dir="'"${basedir}"'"'
echo 'adr_template_dir="'"${basedir}"'"'

0 comments on commit 3e0d778

Please sign in to comment.