Skip to content

Commit a7faa26

Browse files
Quality & fixes
- show new directory path while creation - [udroid.sh] handle distro folder - [udroid.sh] remove unwanted pipe to progressfit
1 parent 4258358 commit a7faa26

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

udroid/src/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function install_symlinks() {
1717

1818
function create_dir() {
1919
[[ -d $1 ]] && rm -rf $1
20-
g_spin minidot "Creating directory..." mkdir -p $1
20+
g_spin minidot "Creating directory \"$1\"..." mkdir -p $1
2121
}
2222

2323
create_dir $INSTALL_DIR

udroid/src/udroid.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ install() {
166166

167167
# Start Extracting
168168
LOG "Extracting $name.tar.$ext"
169+
170+
# create $name directory
171+
mkdir -p $name
172+
173+
# call proot extract
169174
p_extract --file "$DLCACHE/$name.tar.$ext" --path "$DEFAULT_FS_INSTALL_DIR/$name"
170175
else
171176
download "$name.tar.$ext" "$link" "$path"
@@ -200,7 +205,7 @@ download() {
200205

201206
LOG "download() args => name=$name link=$link path=$path"
202207

203-
wget -q --show-progress --progress=bar:force -O ${path}/$name "$link" 2>&1 | progressfilt || {
208+
wget -q --show-progress --progress=bar:force -O ${path}/$name "$link" 2>&1 || {
204209
ELOG "failed to download $name"
205210
echo "failed to download $name"
206211
exit 1

0 commit comments

Comments
 (0)