Skip to content

Commit 159d8a5

Browse files
fixing up
1 parent ae0d7d7 commit 159d8a5

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

fs-manager/fs-manager

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
TERMUX_ETC="/data/data/com.termux/files/usr/etc"
44
CONFIG_DIR="${TERMUX_ETC}/ubuntu-on-android"
55
: "${TERMUX_PREFIX_i:=/data/data/com.termux/files/usr}"
6+
branch="Script-v01-patch"
67

78
VERSION="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

0 commit comments

Comments
 (0)