summaryrefslogtreecommitdiff
path: root/cron-jobs/repo-sanity-check
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-12-31 15:49:06 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-12-31 15:49:06 -0500
commit6a093f1dc6bd5398115544dd229b520f9432e122 (patch)
treee2c81e3dad9b68ad83f3e33e28ac4d56615a6bb8 /cron-jobs/repo-sanity-check
parent9b69d5863bdf398b78ce46661dabb9abec09385e (diff)
use `readlink -e` on $0
Diffstat (limited to 'cron-jobs/repo-sanity-check')
-rwxr-xr-xcron-jobs/repo-sanity-check4
1 files changed, 2 insertions, 2 deletions
diff --git a/cron-jobs/repo-sanity-check b/cron-jobs/repo-sanity-check
index 1ba90a6..2aa7892 100755
--- a/cron-jobs/repo-sanity-check
+++ b/cron-jobs/repo-sanity-check
@@ -1,8 +1,8 @@
#!/bin/bash
# Solves issue165
-. "$(dirname $0)/../db-functions"
-. "$(dirname $0)/../config"
+. "$(dirname "$(readlink -e "$0")")/../db-functions"
+. "$(dirname "$(readlink -e "$0")")/../config"
# Traverse all repos
for _repo in ${PKGREPOS[@]}; do