SCRIPT_NAME="upgrade-trigger.sh"
LOG_FILE="/tmp/upgrade-trigger.log"
+SCRIPT_DIR=$(dirname -- "${BASH_SOURCE[0]}")
#------------------------------------------------
# log msg [file]
#------------------------------------------------
log "[Info] Launching legacy update without A|B partition scheme" "$LOG_FILE"
else
log "[Info] Launching new update with A|B partition scheme" "$LOG_FILE"
- if ! upgrade-prepare-partitions.sh; then
+ if ! "${SCRIPT_DIR}"/upgrade-prepare-partitions.sh; then
exit 1
fi
- if ! upgrade-partial.sh "$DOWNLOAD_DELTA"; then
+ if ! "${SCRIPT_DIR}"/upgrade-partial.sh "$DOWNLOAD_DELTA"; then
exit 1
fi
- if ! upgrade-fota.sh; then
+ if ! "${SCRIPT_DIR}"/upgrade-fota.sh; then
exit 1
fi
exit 0