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 /create-repo | |
parent | 9b69d5863bdf398b78ce46661dabb9abec09385e (diff) |
use `readlink -e` on $0
Diffstat (limited to 'create-repo')
-rwxr-xr-x | create-repo | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/create-repo b/create-repo index 58842c3..f77fa24 100755 --- a/create-repo +++ b/create-repo @@ -1,8 +1,8 @@ #!/bin/bash # Creates repository structure -. "$(dirname $0)/db-functions" -. "$(dirname $0)/config" +. "$(dirname "$(readlink -e "$0")")/db-functions" +. "$(dirname "$(readlink -e "$0")")/config" if [ $# -eq 0 ]; then msg "Usage: $0 repo1 [repo2 ... repoX]" @@ -21,4 +21,4 @@ for _repo in $@; do done done -msg "Don't forget to add them to the PKGREPOS array on $(dirname $0)/config" +msg "Don't forget to add them to the PKGREPOS array on %s/config" "$(dirname "$(readlink -e "$0")")" |