[augeas-devel] augeas: master - * test-test-preserve.sh: work with BSD ls, as well as GNU ls
David Lutterkort
lutter at fedoraproject.org
Fri Jun 12 22:05:49 UTC 2009
Gitweb: http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=e4469340cfe77c7ec9a88a47528cbdc5196d1641
Commit: e4469340cfe77c7ec9a88a47528cbdc5196d1641
Parent: 65434dca22c1bd4d580a5ed2944e8df63efd8140
Author: Anders F Bjorklund <afb at users.sourceforge.net>
AuthorDate: Fri Jun 12 09:44:34 2009 +0200
Committer: David Lutterkort <lutter at redhat.com>
CommitterDate: Fri Jun 12 14:59:07 2009 -0700
* test-test-preserve.sh: work with BSD ls, as well as GNU ls
Needed to make the test pass on OS/X
---
tests/test-preserve.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/test-preserve.sh b/tests/test-preserve.sh
index 9bca698..301b0c1 100755
--- a/tests/test-preserve.sh
+++ b/tests/test-preserve.sh
@@ -39,7 +39,7 @@ if [ $? != 0 ] ; then
exit 1
fi
-act_group=$(ls -l $hosts | cut -d ' ' -f 4)
+act_group=$(ls -l $hosts | sed -e 's/ */ /g' | cut -d ' ' -f 4)
act_mode=$(ls -l $hosts | cut -b 1-10)
if [ $selinux = yes ] ; then
act_con=$(ls -lZ $hosts | cut -d ' ' -f 5 | cut -d ':' -f 3)
More information about the augeas-devel
mailing list