We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fba4fdf commit 7d71c8fCopy full SHA for 7d71c8f
udroid/src/udroid.sh
@@ -19,7 +19,7 @@ fetch_distro_data() {
19
URL="https://raw.githubusercontent.com/RandomCoderOrg/udroid-download/main/distro-data.json"
20
_path="${RTCACHE}/distro-data.json.cache"
21
22
- mv $_path $_path.old
+ [[ -f $_path ]] && mv $_path $_path.old
23
24
g_spin dot "Fetching distro data.." curl -L -s -o $_path $URL || {
25
ELOG "[${0}] failed to fetch distro data"
0 commit comments