#!/bin/bash set -e BUNDLE_NAME="$1" export INI_FILE_OVERRIDE="$2" REF_NAME=$3 LTS=$4 SCRIPT_NAME="prepare_bundle.sh" echo "Entering $SCRIPT_NAME with ${BUNDLE_NAME}" pwd echo "RUSEFI_BUILD_FTP_USER=$RUSEFI_BUILD_FTP_USER" TIMESTAMP=$(date "+%Y%m%d_%H%M%S") if [ "$4" = "true" ]; then export FOLDER="temp/rusefi.${3}.${BUNDLE_NAME}" else export FOLDER="temp/rusefi.snapshot.${BUNDLE_NAME}" fi export BUNDLE_FULL_NAME="rusefi_bundle_${BUNDLE_NAME}" bash misc/jenkins/build_working_folder.sh "${REF_NAME}" "${LTS}" pwd echo "exiting $SCRIPT_NAME"