diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-12-31 15:49:06 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-12-31 15:49:06 -0500 |
commit | 6a093f1dc6bd5398115544dd229b520f9432e122 (patch) | |
tree | e2c81e3dad9b68ad83f3e33e28ac4d56615a6bb8 /db-check-nonfree | |
parent | 9b69d5863bdf398b78ce46661dabb9abec09385e (diff) |
use `readlink -e` on $0
Diffstat (limited to 'db-check-nonfree')
-rwxr-xr-x | db-check-nonfree | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db-check-nonfree b/db-check-nonfree index ecad3b9..ba5f5aa 100755 --- a/db-check-nonfree +++ b/db-check-nonfree @@ -1,7 +1,7 @@ #!/bin/bash -. "$(dirname $0)/db-functions" -. "$(dirname $0)/config" +. "$(dirname "$(readlink -e "$0")")/db-functions" +. "$(dirname "$(readlink -e "$0")")/config" if [ $# -ge 1 ]; then warning "Calling $(basename $0) with a specific repository is not supported" |