summaryrefslogtreecommitdiff
path: root/cron-jobs/integrity-check
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-04-17 10:45:45 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-04-17 10:45:45 -0400
commita79d7c7251f4e6fd2f8b288b5c91a77a66ecff65 (patch)
treef44145d6cda8bb20070edf1ce464ad60b6bf3a04 /cron-jobs/integrity-check
parentf73a4a8844641b780644b8b96865372dc34936bd (diff)
parent752bd700e9da464006bfbd9877cc858dfad545ba (diff)
Merge branch 'lukeshu/xbs' into testmerge
# Conflicts: # test/lib/common.inc # test/test.d/create-filelists.sh # test/test.d/db-move.sh # test/test.d/db-remove.sh # test/test.d/db-repo-add.sh # test/test.d/db-repo-remove.sh # test/test.d/db-update.sh # test/test.d/ftpdir-cleanup.sh # test/test.d/sourceballs.sh
Diffstat (limited to 'cron-jobs/integrity-check')
-rwxr-xr-xcron-jobs/integrity-check8
1 files changed, 4 insertions, 4 deletions
diff --git a/cron-jobs/integrity-check b/cron-jobs/integrity-check
index f6c26cf..7459380 100755
--- a/cron-jobs/integrity-check
+++ b/cron-jobs/integrity-check
@@ -1,6 +1,6 @@
#!/bin/bash
-dirname="$(dirname $0)"
+dirname="$(dirname "$(readlink -e "$0")")"
. "${dirname}/../config"
. "${dirname}/../db-functions"
@@ -8,17 +8,17 @@ dirname="$(dirname $0)"
script_lock
if [ $# -ne 1 ]; then
- die "usage: ${0##*/} <mailto>"
+ die "usage: %s <mailto>" "${0##*/}"
fi
mailto=$1
check() {
- ${dirname}/check_archlinux/check_packages.py \
+ "${dirname}"/check_archlinux/check_packages.py \
--repos="${repos}" \
--abs-tree="/srv/abs/rsync/${arch},/srv/abs/rsync/any" \
--repo-dir="${FTP_BASE}" \
--arch="${arch}" \
- 2>&1 | ${dirname}/devlist-mailer "Integrity Check ${arch}: ${repos}" "${mailto}"
+ 2>&1 | "${dirname}"/devlist-mailer "Integrity Check ${arch}: ${repos}" "${mailto}"
}
repos='core,extra,community'