From 503997a09ae556cbb54a8b15eac90063e81428d9 Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Sat, 19 Dec 2020 14:08:06 -0800 Subject: [PATCH] Trim out \r --- scripts/util_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/util_functions.sh b/scripts/util_functions.sh index 4156f0c51..cb546dde8 100644 --- a/scripts/util_functions.sh +++ b/scripts/util_functions.sh @@ -33,7 +33,7 @@ grep_prop() { shift local FILES=$@ [ -z "$FILES" ] && FILES='/system/build.prop' - sed -n "$REGEX" $FILES 2>/dev/null | head -n 1 + cat $FILES | dos2unix | sed -n "$REGEX" 2>/dev/null | head -n 1 } getvar() {