From 36f2a7e375cae2738bde2960f727bb965d856d66 Mon Sep 17 00:00:00 2001 From: Sonyu Annino <92148685+AnninoDr4@users.noreply.github.com> Date: Wed, 3 Aug 2022 07:40:03 +0530 Subject: [PATCH] make sure to create `LOGIN_CACHE_FILE` if file doesn't exist make sure to create it! - https://github.com/RandomCoderOrg/ubuntu-on-android/issues/182 --- scripts/udroid/udroid.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/udroid/udroid.sh b/scripts/udroid/udroid.sh index 5de283d..6d97cce 100644 --- a/scripts/udroid/udroid.sh +++ b/scripts/udroid/udroid.sh @@ -56,6 +56,7 @@ _login() { if [[ $avalible_distros =~ $distro ]]; then if is_installed "$distro"; then # store distro aliases in cache + [[ ! -f $LOGIN_CACHE_FILE ]] && touch $LOGIN_CACHE_FILE echo "$distro" >"$LOGIN_CACHE_FILE" # start distro start "$distro" $extra_args