From a69b05c4d791892743db67bce91496fd6be39b50 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 18 Mar 2018 11:24:22 -0400 Subject: tests: Be robust to ls -i implementation that output a leading space --- tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index 0809226..f59ac84 100755 --- a/tests.sh +++ b/tests.sh @@ -1239,7 +1239,7 @@ function test_quit_implicit_print() { } function test_inum() { - local inode="$(ls -id basic/k/foo/bar | cut -f1 -d' ')" + local inode="$(ls -id basic/k/foo/bar | awk '{ print $1 }')" bfs_diff basic -inum "$inode" } -- cgit v1.2.3