From 81d4b3600601c8afa9729dd9e69ab9e7307eb363 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Sun, 17 Mar 2013 16:10:19 +0000 Subject: [PATCH] Remove bashism. --- bootstrap-salt.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 0f5cb28..5ab2750 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -2285,11 +2285,8 @@ if [ "$DAEMONS_RUNNING_FUNC" != "null" ]; then [ ! -f /var/log/salt/$fname ] && echodebug "/var/log/salt/$fname does not exist. Can't cat its contents!" && continue echodebug "DEAMON LOGS for $fname:" - while IFS=$'\n' read -r line; do - echodebug "$line" - done < /var/log/salt/$fname + echodebug "$(cat /var/log/salt/$fname)" echo - done exit 1 fi