summaryrefslogtreecommitdiff
path: root/autoprobe.zsh
diff options
context:
space:
mode:
authorMaria Lisina <sekoohaka.sarisan@gmail.com>2026-08-18 17:04:08 +0500
committerMaria Lisina <sekoohaka.sarisan@gmail.com>2026-08-18 17:04:08 +0500
commit42477ca6ff405858fe2bbbc8d326dac9cafe1149 (patch)
tree1b6a4759ade7b7a580523bfaf0a07607bd7585d3 /autoprobe.zsh
parent96917f69a0c191304a276732ac18f6e6b551d5d5 (diff)
autoprobe: Add dir variable
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
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