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() {