mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-27 08:31:04 +02:00
fix(core_upload_update): Set PATH for au-generator.zip bundles.
The tools provided by au-generator.zip are expected to be in the PATH by this script and the scripts it calls. Make it so.
This commit is contained in:
parent
c9a6956f6f
commit
ea8ed8f5da
@ -45,6 +45,15 @@ switch_to_strict_mode
|
|||||||
[[ -z "${FLAGS_private_key}" ]] && die "--private_key is required"
|
[[ -z "${FLAGS_private_key}" ]] && die "--private_key is required"
|
||||||
[[ -z "${FLAGS_public_key}" ]] && die "--public_key is required"
|
[[ -z "${FLAGS_public_key}" ]] && die "--public_key is required"
|
||||||
|
|
||||||
|
# Add the current directory to $PATH if we seem to be from a au bundle
|
||||||
|
if ! which cros_generate_update_payload &>/dev/null; then
|
||||||
|
if [[ -e "${SCRIPT_ROOT}/cros_generate_update_payload" ]]; then
|
||||||
|
export PATH="${SCRIPT_ROOT}:${PATH}"
|
||||||
|
else
|
||||||
|
die_notrace "Cannot find cros_generate_update_payload"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
OUTPUT_DIR=$(mktemp -d)
|
OUTPUT_DIR=$(mktemp -d)
|
||||||
trap "rm -rf ${OUTPUT_DIR}" INT TERM EXIT
|
trap "rm -rf ${OUTPUT_DIR}" INT TERM EXIT
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user