Skip to content

Commit 787bb12

Browse files
committedJun 3, 2024
Fix "acc -u -f dev^1" syntax and related errors
1 parent c63337e commit 787bb12

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎install-online.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ onlineVersion=$(_curl https://raw.githubusercontent.com/VR-25/$id/${commit}/modu
9494

9595
[ -f $PWD/${0##*/} ] || cd $(readlink -f ${0%/*})
9696
[ -z "${reference-}" ] || cd /dev/.$domain/$id
97-
rm -rf "./${id}-${commit}/" 2>/dev/null || :
97+
rm -rf "./${id}-*/" 2>/dev/null || :
9898

9999

100100
if [ ${installedVersion:-0} -lt ${onlineVersion:-0} ] \
@@ -123,7 +123,7 @@ then
123123
trap - EXIT
124124
echo
125125
_curl $tarball | tar -xz \
126-
&& ash ${id}-${commit}/install.sh
126+
&& ash ${id}-*/install.sh
127127

128128
else
129129
echo
@@ -133,5 +133,5 @@ fi
133133

134134

135135
set -eu
136-
rm -rf "./${id}-${commit}/" 2>/dev/null
136+
rm -rf "./${id}-*/" 2>/dev/null
137137
exit 0

‎install/acc.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -676,10 +676,10 @@ case "${1-}" in
676676
if [ ".${1-}" != .wget ] && i=$(which curl) && [ ".$(head -n 1 ${i:-//} 2>/dev/null || :)" != ".#!/system/bin/sh" ]; then
677677
curl --help | grep '\-\-dns\-servers' >/dev/null && dns="--dns-servers 9.9.9.9,1.1.1.1" || dns=
678678
curl $dns --progress-bar --insecure -Lo \
679-
$TMPDIR/install-online.sh https://raw.githubusercontent.com/VR-25/acc/$reference/install-online.sh || dl wget
679+
$TMPDIR/install-online.sh https://raw.githubusercontent.com/VR-25/acc/dev/install-online.sh || dl wget
680680
else
681681
PATH=${PATH#*/busybox:} /dev/.vr25/busybox/wget -O $TMPDIR/install-online.sh --no-check-certificate \
682-
https://raw.githubusercontent.com/VR-25/acc/$reference/install-online.sh
682+
https://raw.githubusercontent.com/VR-25/acc/dev/install-online.sh
683683
fi
684684
}
685685

0 commit comments

Comments
 (0)
Please sign in to comment.