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