From 6cee9fdcad049ca21606983b05a0a4cfc13ffd53 Mon Sep 17 00:00:00 2001 From: Sébastien Lesaint Date: Mon, 22 Aug 2016 11:48:39 +0200 Subject: Revert "wc accepts files as input parameter." This reverts commit b66e224d79d66086164655b9030bf6dffb2f32a2. if FILE variable contains bash variables (such as $HOME) they are not resolved and script fails (because of 'set -euo pipefail') --- scripts/property_utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/property_utils.sh b/scripts/property_utils.sh index ea1545d5b24..8ac285af760 100755 --- a/scripts/property_utils.sh +++ b/scripts/property_utils.sh @@ -10,7 +10,7 @@ set -euo pipefail function cnt_lines() { local FILE=$1 - wc -l $1 + cat $FILE | wc -l } function write_prop() { -- cgit v1.2.3