From ce4f043def11bcdef60f9b1c87538131bdca3f85 Mon Sep 17 00:00:00 2001 From: Julian Xhokaxhiu Date: Sun, 22 Jan 2017 14:02:59 +0100 Subject: [PATCH] Redirect output And fix the copy of the local manifest syntax --- src/build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/build.sh b/src/build.sh index e16592b..17787cc 100644 --- a/src/build.sh +++ b/src/build.sh @@ -23,7 +23,7 @@ if ! [ -z "$DEVICE_LIST" ]; then # Copy local manifests to the appropriate folder in order take them into consideration echo ">> [$(date)] Copying '$LMANIFEST_DIR/*.xml' to '$SRC_DIR/.repo/local_manifests/'" - cp * $LMANIFEST_DIR/*.xml $SRC_DIR/.repo/local_manifests/ + cp $LMANIFEST_DIR/*.xml $SRC_DIR/.repo/local_manifests/ >&$OUTPUT # Go to "vendor/cm" and reset it's current git status ( remove previous changes ) only if the directory exists if [ -d "vendor/cm" ]; then @@ -49,7 +49,7 @@ if ! [ -z "$DEVICE_LIST" ]; then # Set a custom updater URI if a OTA URL is provided if ! [ -z "$OTA_URL" ]; then echo ">> [$(date)] Adding OTA URL '$OTA_URL' to build.prop" - sed -i "1s;^;PRODUCT_PROPERTY_OVERRIDES += cm.updater.uri=$OTA_URL\n\n;" vendor/cm/config/common.mk + sed -i "1s;^;PRODUCT_PROPERTY_OVERRIDES += cm.updater.uri=$OTA_URL\n\n;" vendor/cm/config/common.mk >&$OUTPUT fi # Cycle DEVICE_LIST environment variable, to know which one may be executed next @@ -62,7 +62,7 @@ if ! [ -z "$DEVICE_LIST" ]; then # Move produced ZIP files to the main OUT directory echo ">> [$(date)] Moving build artifacts for $codename to '$ZIP_DIR'" cd $SRC_DIR - find out/target/product/$codename -name '*UNOFFICIAL*.zip*' -exec mv {} $ZIP_DIR \; + find out/target/product/$codename -name '*UNOFFICIAL*.zip*' -exec mv {} $ZIP_DIR \; >&$OUTPUT # Clean everything, in order to start fresh on next build if [ "$CLEAN_AFTER_BUILD" = true ]; then