← Back to team overview

ubuntu-phone team mailing list archive

A small patch on path matching in android_bootable_recovery

 

Hi, the patch attached is a again path matching for file
system-image-upgrader.

in git://phablet.ubuntu.com/CyanogenMod/android_bootable_recovery

It's so clear a bug you can just see the patch file.

Thanks, YC
From 30bcfc3d8d81f783ccf73babe4bf500a6472dd24 Mon Sep 17 00:00:00 2001
From: "Y.C Cheng" <yc.cheng@xxxxxxxxxxxxx>
Date: Fri, 13 Dec 2013 15:34:20 +0800
Subject: [PATCH] fix a bug on path matching

---
 system-image-upgrader | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/system-image-upgrader b/system-image-upgrader
index 224696c..af979bc 100755
--- a/system-image-upgrader
+++ b/system-image-upgrader
@@ -146,7 +146,7 @@ do
 
                 data)
                     for entry in /data/*; do
-                        if [ "$entry" != "system.img" ]; then
+                        if [ "$entry" != "/data/system.img" ]; then
                             rm -Rf $entry
                         fi
                     done
-- 
1.8.5


Follow ups