Ver código fonte

simplified exclusion of Kodi

Jandalf81 7 anos atrás
pai
commit
b0247204d0
1 arquivos alterados com 10 adições e 16 exclusões
  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" ]