Commit 9961f636 authored by fuyanbin's avatar fuyanbin
Browse files

去掉android_sdk版本号里的特殊字符,比如: \r, \n

parent db97c58b
......@@ -72,6 +72,8 @@ build_image() {
rm -f "$build_dir/system/bin/hugep-all.zip"
android_sdk="$(grep "build\.version\.sdk" "$build_dir"/system/build.prop | awk -F'=' '{print $2}')"
android_sdk="${android_sdk//$'\r'}"
android_sdk="${android_sdk//$'\n'}"
if [[ "$android_sdk" -ge 28 ]]
then
find ./services/ -type f -name "*.rc" -exec install -t "$build_dir"/system/etc/init/ {} \;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment