Skip to content

Commit

Permalink
improve data fetch logic
Browse files Browse the repository at this point in the history
  • Loading branch information
SaicharanKandukuri committed Jun 3, 2023
1 parent bcdf840 commit 03ae1eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion udroid/src/udroid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ fetch_distro_data() {
if [[ -f $_path ]]; then
# if not in offline mode, fetch the data from the internet
if ! $offline_mode; then
mv $_path $_path.old
g_spin dot "Fetching distro data.." curl -L -s -o $_path $URL || {
ELOG "[${0}] failed to fetch distro data"
mv $_path.old $_path
Expand Down Expand Up @@ -772,7 +773,6 @@ parser() {
else
mkdir $RTCACHE 2> /dev/null
fetch_distro_data $mode
distro_data=${RTCACHE}/distro-data.json.cache
fi

############### START OF OPTION PARSER ##############
Expand Down

0 comments on commit 03ae1eb

Please sign in to comment.