16 lines
535 B
Bash
Executable File
16 lines
535 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# ==============================================================================
|
|
# Flash latest release firmware to Xiaomi Mi 8 Lite (platina)
|
|
# ==============================================================================
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
RELEASE_DIR="$SCRIPT_DIR/artifacts/release-v0.8.1-bulletproof"
|
|
|
|
if [[ ! -d "$RELEASE_DIR" ]]; then
|
|
echo "ERROR: Release directory '$RELEASE_DIR' not found!"
|
|
exit 1
|
|
fi
|
|
|
|
exec "$RELEASE_DIR/flash.sh" "$@"
|