From 7177ce1a45a7fcafeac320a45697e7a17bc59eac Mon Sep 17 00:00:00 2001 From: Alex Deryskyba Date: Tue, 16 Jun 2015 22:34:26 +0200 Subject: [PATCH] scripts/image: copy aml_autoscript only if it exists --- scripts/image | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/image b/scripts/image index 4e539fe1f6..6ff74ded0d 100755 --- a/scripts/image +++ b/scripts/image @@ -380,7 +380,9 @@ fi pushd sign > /dev/null echo --update_package=/sdcard/$IMAGE_NAME-update.zip > factory_update_param.aml cp $INSTALL_SRC_DIR/files/recovery.img . - cp $INSTALL_SRC_DIR/files/aml_autoscript . + if [ -f $INSTALL_SRC_DIR/files/aml_autoscript ]; then + cp $INSTALL_SRC_DIR/files/aml_autoscript . + fi zip -q $TARGET_IMG/$IMAGE_NAME.zip * popd > /dev/null fi