Skip to content

Commit 7d71c8f

Browse files
logic fix
1 parent fba4fdf commit 7d71c8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

udroid/src/udroid.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fetch_distro_data() {
1919
URL="https://raw.githubusercontent.com/RandomCoderOrg/udroid-download/main/distro-data.json"
2020
_path="${RTCACHE}/distro-data.json.cache"
2121

22-
mv $_path $_path.old
22+
[[ -f $_path ]] && mv $_path $_path.old
2323

2424
g_spin dot "Fetching distro data.." curl -L -s -o $_path $URL || {
2525
ELOG "[${0}] failed to fetch distro data"

0 commit comments

Comments
 (0)