diff options
author | Sami Kerola | 2014-02-17 00:54:14 +0100 |
---|---|---|
committer | Karel Zak | 2014-02-17 13:55:41 +0100 |
commit | e130ce53ce87f39f4bee3288d106c681e82dbb86 (patch) | |
tree | cc8c576a2aef0d463bdf1c8d5dd4f65971519cc1 /tests/ts/login | |
parent | tests: fix trailing spaces in cal(1) stuff (diff) | |
download | kernel-qcow2-util-linux-e130ce53ce87f39f4bee3288d106c681e82dbb86.tar.gz kernel-qcow2-util-linux-e130ce53ce87f39f4bee3288d106c681e82dbb86.tar.xz kernel-qcow2-util-linux-e130ce53ce87f39f4bee3288d106c681e82dbb86.zip |
tests: avoid executing dirname(1) command
Bash parameter expansion does the same thing.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tests/ts/login')
-rwxr-xr-x | tests/ts/login/islocal | 2 | ||||
-rwxr-xr-x | tests/ts/login/logindefs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ts/login/islocal b/tests/ts/login/islocal index c25da6a07..a1a7a3b60 100755 --- a/tests/ts/login/islocal +++ b/tests/ts/login/islocal @@ -15,7 +15,7 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="islocal" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/login/logindefs b/tests/ts/login/logindefs index 10caed752..0b3b9a44c 100755 --- a/tests/ts/login/logindefs +++ b/tests/ts/login/logindefs @@ -4,7 +4,7 @@ # # This file is part of util-linux. # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="defs" . $TS_TOPDIR/functions.sh |