Commit 23d677b5 authored by Davide Garberi's avatar Davide Garberi
Browse files

backuptool: Fix addon.d version check for A-only

 * The path /postinstall exists only for A/B, causing:
   grep: /postinstall/tmp/addon.d/*sh: No such file or directory

Change-Id: Ia07b3029e949c3e08302457cd08798a4dde00ef6
parent 4827e3ba
......@@ -20,7 +20,7 @@ preserve_addon_d() {
cp -a $S/addon.d/* /tmp/addon.d/
# Discard any scripts that aren't at least our version level
for f in /postinstall/tmp/addon.d/*sh; do
for f in /tmp/addon.d/*sh; do
SCRIPT_VERSION=$(grep "^# ADDOND_VERSION=" $f | cut -d= -f2)
if [ -z "$SCRIPT_VERSION" ]; then
Supports Markdown
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