summaryrefslogtreecommitdiff
path: root/autoprobe.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'autoprobe.zsh')
-rwxr-xr-xautoprobe.zsh5
1 files changed, 3 insertions, 2 deletions
diff --git a/autoprobe.zsh b/autoprobe.zsh
index b23fae3..344f1fe 100755
--- a/autoprobe.zsh
+++ b/autoprobe.zsh
@@ -7,8 +7,9 @@
set -e
-lkddb="$(dirname "${0}")/lkddb.list"
-defconfig="$(dirname "${0}")/autoprobe.defconfig"
+dir="${0%/*}"
+lkddb="${dir}/lkddb.list"
+defconfig="${dir}/autoprobe.defconfig"
if ! [[ -f "${lkddb}" ]]
then