summaryrefslogtreecommitdiff
path: root/get-repos
diff options
context:
space:
mode:
Diffstat (limited to 'get-repos')
-rwxr-xr-xget-repos6
1 files changed, 3 insertions, 3 deletions
diff --git a/get-repos b/get-repos
index 92db9a2..a477cf2 100755
--- a/get-repos
+++ b/get-repos
@@ -9,8 +9,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
@@ -19,7 +19,7 @@ trap 'trap_exit "$(gettext "TERM signal caught. Exiting...")"' TERM HUP QUIT
trap 'trap_exit "$(gettext "Aborted by user! Exiting...")"' INT
trap 'trap_exit "$(gettext "An unknown error has occurred. Exiting...")"' ERR
-TMPDIR="$(mktemp -dt "$(basename $0).XXXX")"
+TMPDIR="$(mktemp -dt "${0##*/}.XXXX")"
DBLIST=()
# Repos