Skip to content

Commit ad72d1f

Browse files
use if..else
1 parent 497b43c commit ad72d1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

udroid/src/udroid.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,13 @@ install() {
180180
msg_download $name "$path/$name.tar.$ext" "$link"
181181
download "$name.tar.$ext" "$link" "$path"
182182

183-
[[ -d $path ]] && {
183+
if [[ -d $path ]]; then
184184
LOG "Extracting $name.tar.$ext"
185185
mkdir -p $path/$name
186-
} || {
186+
else
187187
ELOG "ERROR: path $path not found"
188188
echo "ERROR: path $path not found"
189-
}
189+
fi
190190

191191
msg_extract "$path/$name"
192192
p_extract --file "$path/$name.tar.$ext" --path "$path/$name"

0 commit comments

Comments
 (0)