summaryrefslogtreecommitdiff
path: root/db-cleanup
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-08 21:04:43 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-01-08 21:19:01 -0500
commitb6e8ebd66d22abf5439485985a7851e768c71e8a (patch)
treeeec7fafd8aa2285dd3b706bb1e433a0ed10c87e5 /db-cleanup
parent1d08899c3ac82047fe614a7694e5a7235f808cfd (diff)
Be very careful about using $0.
Diffstat (limited to 'db-cleanup')
-rwxr-xr-xdb-cleanup4
1 files changed, 2 insertions, 2 deletions
diff --git a/db-cleanup b/db-cleanup
index abad390..57ef36e 100755
--- a/db-cleanup
+++ b/db-cleanup
@@ -15,8 +15,8 @@ trap_exit() {
exit 1
}
-source $(dirname $0)/config
-source $(dirname $0)/libremessages
+source "$(dirname "$(readlink -e "$0")")/config"
+source "$(dirname "$(readlink -e "$0")")/libremessages"
# From makepkg
set -E