monitoring: strip :443 from chain deep-link URIs
This commit is contained in:
parent
4d49657a63
commit
2dfd40558a
1 changed files with 3 additions and 0 deletions
|
|
@ -299,6 +299,8 @@ for AMT in "${AMOUNTS[@]}"; do
|
||||||
step "2.$idx withdraw $AMT"
|
step "2.$idx withdraw $AMT"
|
||||||
URI="$(mint_withdraw "$AMT" | head -1)"
|
URI="$(mint_withdraw "$AMT" | head -1)"
|
||||||
[[ -n "$URI" ]] || die "mint failed for $AMT"
|
[[ -n "$URI" ]] || die "mint failed for $AMT"
|
||||||
|
# wallet / monitoring QR rules: strip default ports
|
||||||
|
URI=$(printf '%s' "$URI" | sed 's/:443\//\//g; s/:443?/?/g; s/:80\//\//g')
|
||||||
info "URI=$URI"
|
info "URI=$URI"
|
||||||
echo "$URI" >>"$SHOTDIR/withdraw-uris.txt"
|
echo "$URI" >>"$SHOTDIR/withdraw-uris.txt"
|
||||||
adb_sh am start -a android.intent.action.VIEW -d "$URI" "$PKG" >/dev/null
|
adb_sh am start -a android.intent.action.VIEW -d "$URI" "$PKG" >/dev/null
|
||||||
|
|
@ -326,6 +328,7 @@ for PAY in "${PAYS[@]}"; do
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
[[ -n "$PAYURI" ]] || { info "empty pay uri — skip"; continue; }
|
[[ -n "$PAYURI" ]] || { info "empty pay uri — skip"; continue; }
|
||||||
|
PAYURI=$(printf '%s' "$PAYURI" | sed 's/:443\//\//g; s/:443?/?/g; s/:80\//\//g')
|
||||||
info "PAYURI=$PAYURI"
|
info "PAYURI=$PAYURI"
|
||||||
echo "$PAYURI" >>"$SHOTDIR/pay-uris.txt"
|
echo "$PAYURI" >>"$SHOTDIR/pay-uris.txt"
|
||||||
adb_sh am start -a android.intent.action.VIEW -d "$PAYURI" "$PKG" >/dev/null
|
adb_sh am start -a android.intent.action.VIEW -d "$PAYURI" "$PKG" >/dev/null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue