Skip to content

Commit 939699d

Browse files
run in RTR
1 parent 73c7187 commit 939699d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

udroid/src/udroid.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#!/bin/bash
22

3+
RTR="${PREFIX}/etc/udroid"
4+
DEFAULT_ROOT="${PREFIX}/usr/var/lib/udroid"
5+
DEFAULT_FS_INSTALL_DIR="${DEFAULT_ROOT}/installed-filesystems"
6+
DLCACHE="${DEFAULT_ROOT}/dlcache"
7+
RTCACHE="${RTR}/.cache"
8+
9+
[[ -d ${RTR} ]] && cd $RTR || exit 1
310
[[ ! -f proot-utils/proot-utils.sh ]] && echo "proot-utils.sh not found" && exit 1
411
[[ ! -f gum_wrapper.sh ]] && echo "gum_wrapper.sh not found" && exit 1
512

@@ -8,12 +15,6 @@ source gum_wrapper.sh
815

916
export distro_data
1017

11-
RTR="${PREFIX}/etc/udroid"
12-
DEFAULT_ROOT="${PREFIX}/usr/var/lib/udroid"
13-
DEFAULT_FS_INSTALL_DIR="${DEFAULT_ROOT}/installed-filesystems"
14-
DLCACHE="${DEFAULT_ROOT}/dlcache"
15-
RTCACHE="${RTR}/.cache"
16-
1718
fetch_distro_data() {
1819
URL="https://raw.githubusercontent.com/RandomCoderOrg/udroid-download/main/distro-data.json"
1920
_path="${RTCACHE}/distro-data.json.cache"

0 commit comments

Comments
 (0)