summaryrefslogtreecommitdiffstats
path: root/build/common-functions.sh
diff options
context:
space:
mode:
authorTomáš Levora <t.levora@partner.samsung.com>2019-04-23 14:28:47 +0200
committerTomáš Levora <t.levora@partner.samsung.com>2019-05-09 12:24:21 +0200
commit284fbf8afb0ff784507e7b0f8b9d325e8644f67c (patch)
tree8facf71bf7bb9325b2f428d5d8e1daa5a396c7e2 /build/common-functions.sh
parent029b36f9f0faedc18b032ebb8c598118ff80f67b (diff)
Fix download scripts to handle empty lines
Fixing download and saving scripts to be able to ignore empty or 00D ending lines in lists Issue-ID: OOM-1818 Change-Id: I55ef1dfbea628f8c1d4b19745536e629a2dbe0c9 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Diffstat (limited to 'build/common-functions.sh')
-rwxr-xr-xbuild/common-functions.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/common-functions.sh b/build/common-functions.sh
index e39c4778..04ea2017 100755
--- a/build/common-functions.sh
+++ b/build/common-functions.sh
@@ -90,3 +90,9 @@ retry() {
done
}
+clean_list() {
+ sed -e 's/\s*#.*$//' \
+ -e '/^\s*$/d' ${1} |
+ tr -d '\r' |
+ awk '{ print $1 }'
+}