File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 33TERMUX_ETC=" /data/data/com.termux/files/usr/etc"
44CONFIG_DIR=" ${TERMUX_ETC} /ubuntu-on-android"
55: " ${TERMUX_PREFIX_i:=/ data/ data/ com.termux/ files/ usr} "
6+ branch=" Script-v01-patch"
67
78VERSION=" 0.1"
89
@@ -99,7 +100,6 @@ function upgrade()
99100 git pull upstream modified
100101 cd " ${cur} " || exit 1
101102 fi
102- install -d -m 700 " ${TERMUX_PREFIX_i} " /bin/ fs-manager/fs-manager
103103
104104}
105105
@@ -115,11 +115,18 @@ function quick_install()
115115 if ! [ -d $CONFIG_DIR ]; then
116116 mkdir -pv $CONFIG_DIR >> /dev/null
117117 fi
118- cd $CONFIG_DIR || exit 1
119- upgrade
118+ cd $CONFIG_DIR || exit 1
119+
120+ if ! [ -d ubuntu-on-android ]; then
121+ git clone -b " ${branch} " https://github.com/RandomCoderOrg/ubuntu-on-android
122+ else
123+ cur=$( pwd)
124+ cd $CONFIG_DIR /ubuntu-on-android || exit
125+ git fetch origin https://github.com/RandomCoderOrg/ubuntu-on-android
126+ fi
120127 cd $CONFIG_DIR /ubuntu-on-android || exit 1
121128 bash install.sh --fs-mgr
122- cd " $cur_dir " || exit 1
129+ cd " $cur " || exit 1
123130 fi
124131}
125132
You can’t perform that action at this time.
0 commit comments