From 6e6faebb29c4a6653e7eb149c4cc0e5ebc6def28 Mon Sep 17 00:00:00 2001 From: rapperskull Date: Sat, 27 Jun 2015 19:11:36 +0200 Subject: [PATCH] Cleaned libchrome removal code --- scripts/inc.updatebinary.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/inc.updatebinary.sh b/scripts/inc.updatebinary.sh index 66f398c..8f4558a 100755 --- a/scripts/inc.updatebinary.sh +++ b/scripts/inc.updatebinary.sh @@ -873,15 +873,15 @@ fi; EOFILE if [ "$VARIANT" = "fornexus" ]; then - echo '# Removing old Chrome libraries + tee -a "$build"META-INF/com/google/android/update-binary > /dev/null <<'EOFILE' +# Removing old Chrome libraries obsolete_libs_list="" -for f in $(find /system/lib /system/lib64 -name 'libchrome*.so' 2> /dev/null); do -obsolete_libs_list="${obsolete_libs_list}$f -"; +for f in $(find /system/lib /system/lib64 -name 'libchrome*.so' 2>/dev/null); do +obsolete_libs_list="${obsolete_libs_list}$f"$'\n'; done # Read in gapps removal list from file and append old Chrome libs -full_removal_list="$(cat $gapps_removal_list) -${obsolete_libs_list}";'>> "$build"META-INF/com/google/android/update-binary +full_removal_list=$(cat $gapps_removal_list)$'\n'"${obsolete_libs_list}"; +EOFILE else echo '# Read in gapps removal list from file full_removal_list=$(cat $gapps_removal_list);'>> "$build"META-INF/com/google/android/update-binary -- 2.11.4.GIT