clawchain/scripts/wallet/vendor-mobile-wallet.sh
caelum0x 22a55b5f87 fix: make all 162 scripts executable + add P21 to execution board
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 18:00:00 +03:00

25 lines
672 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/../.." >/dev/null 2>&1 && pwd)"
DEFAULT_REPO="https://github.com/chainapsis/oko.git"
REPO_URL="${1:-${CLAW_MOBILE_WALLET_REPO:-$DEFAULT_REPO}}"
DEST_DIR="${2:-$ROOT_DIR/vendor/claw-wallet-mobile}"
BRANCH="${CLAW_MOBILE_WALLET_BRANCH:-}"
if [ -d "$DEST_DIR/.git" ]; then
echo "ok: mobile wallet repo already exists at $DEST_DIR"
exit 0
fi
mkdir -p "$(dirname "$DEST_DIR")"
if [ -n "$BRANCH" ]; then
git clone --depth 1 --branch "$BRANCH" "$REPO_URL" "$DEST_DIR"
else
git clone --depth 1 "$REPO_URL" "$DEST_DIR"
fi
echo "ok: vendored mobile wallet repo into $DEST_DIR"