Trim out \r

This commit is contained in:
vvb2060 2020-12-19 14:08:06 -08:00 committed by topjohnwu
parent 17efdff134
commit 503997a09a

View File

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