Skip to content

Commit 36f2a7e

Browse files
authored
make sure to create LOGIN_CACHE_FILE
if file doesn't exist make sure to create it! - RandomCoderOrg/ubuntu-on-android#182
1 parent e3eb9b7 commit 36f2a7e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/udroid/udroid.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ _login() {
5656
if [[ $avalible_distros =~ $distro ]]; then
5757
if is_installed "$distro"; then
5858
# store distro aliases in cache
59+
[[ ! -f $LOGIN_CACHE_FILE ]] && touch $LOGIN_CACHE_FILE
5960
echo "$distro" >"$LOGIN_CACHE_FILE"
6061
# start distro
6162
start "$distro" $extra_args

0 commit comments

Comments
 (0)