Selaa lähdekoodia

simplified exclusion of Kodi

Jandalf81 7 vuotta sitten
vanhempi
commit
b0247204d0
1 muutettua tiedostoa jossa 10 lisäystä ja 16 poistoa
  1. 10 16
      rclone_script.sh

+ 10 - 16
rclone_script.sh

@@ -220,26 +220,20 @@ doFullSync ()
 
 if [ "${debug}" = "1" ]; then debug; fi
 
-if [ "${direction}" == "up" ]
+if [ "${direction}" == "up" ] && [ "${system}" != "kodi" ]
 then
-	if [ "${system}" != "kodi" ]
-	then
-		getROMFileName
-		prepareFilter
-		getTypeOfRemote
-		uploadSaves
-	fi
+	getROMFileName
+	prepareFilter
+	getTypeOfRemote
+	uploadSaves
 fi
 
-if [ "${direction}" == "down" ]
+if [ "${direction}" == "down" ] && [ "${system}" != "kodi" ]
 then
-	if [ "${system}" != "kodi" ]
-	then
-		getROMFileName
-		prepareFilter
-		getTypeOfRemote
-		downloadSaves
-	fi
+	getROMFileName
+	prepareFilter
+	getTypeOfRemote
+	downloadSaves
 fi
 
 if [ "${direction}" == "full" ]