scripts/image: copy aml_autoscript only if it exists

This commit is contained in:
Alex Deryskyba 2015-06-16 22:34:26 +02:00
parent 7bb41943bf
commit 7177ce1a45

View File

@ -380,7 +380,9 @@ fi
pushd sign > /dev/null pushd sign > /dev/null
echo --update_package=/sdcard/$IMAGE_NAME-update.zip > factory_update_param.aml echo --update_package=/sdcard/$IMAGE_NAME-update.zip > factory_update_param.aml
cp $INSTALL_SRC_DIR/files/recovery.img . 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 * zip -q $TARGET_IMG/$IMAGE_NAME.zip *
popd > /dev/null popd > /dev/null
fi fi