Skip to content

Commit d883cd3

Browse files
fix logic
1 parent 7522dc8 commit d883cd3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/udroid/udroid.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ _login() {
4242
avalible_distros=$(find $D_INSTALLED_ROOTFS -maxdepth 1 -type d | grep udroid)
4343
cd "$OLDPWD" || exit
4444

45-
if [ -z "$UDROID_SUITE" ] || [ -z "$_SUITE" ] ; then
45+
if [ -z "$UDROID_SUITE" ] && [ -z "$_SUITE" ] ; then
4646
suite="udroid-focal"
4747
else
4848
[[ -n "$UDROID_SUITE" ]] && _suite="$UDROID_SUITE"
@@ -172,7 +172,7 @@ _reset() {
172172
avalible_distros=$(find $D_INSTALLED_ROOTFS -maxdepth 1 -type d | grep udroid)
173173
varient=$1
174174

175-
if [ -z "$UDROID_SUITE" ] || [ -z "$_SUITE" ] ; then
175+
if [ -z "$UDROID_SUITE" ] && [ -z "$_SUITE" ] ; then
176176
_suite="udroid-focal"
177177
else
178178
[[ -n "$UDROID_SUITE" ]] && _suite="$UDROID_SUITE"
@@ -188,11 +188,11 @@ _reset() {
188188
fi
189189
}
190190

191-
remove() {
191+
_remove() {
192192
avalible_distros=$(find $D_INSTALLED_ROOTFS -maxdepth 1 -type d | grep udroid)
193193
varient=$1
194194

195-
if [ -z "$UDROID_SUITE" ] || [ -z "$_SUITE" ] ; then
195+
if [ -z "$UDROID_SUITE" ] && [ -z "$_SUITE" ] ; then
196196
_suite="udroid-focal"
197197
else
198198
[[ -n "$UDROID_SUITE" ]] && _suite="$UDROID_SUITE"

0 commit comments

Comments
 (0)