summaryrefslogtreecommitdiffstats
path: root/tests/ts/mount/regfile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ts/mount/regfile')
-rwxr-xr-xtests/ts/mount/regfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ts/mount/regfile b/tests/ts/mount/regfile
index 8d786adbf..b342ececd 100755
--- a/tests/ts/mount/regfile
+++ b/tests/ts/mount/regfile
@@ -3,7 +3,7 @@
# Copyright (C) 2011 Karel Zak <kzak@redhat.com>
# This file is part of util-linux.
-TS_TOPDIR="$(dirname $0)/../.."
+TS_TOPDIR="${0%/*}/../.."
TS_DESC="regular file"
. $TS_TOPDIR/functions.sh