浏览代码

(ISSUE #6) excluded KODI from trying to sync

Jandalf81 7 年之前
父节点
当前提交
ad3995b708
共有 1 个文件被更改,包括 14 次插入9 次删除
  1. 14 9
      rclone_script.sh

+ 14 - 9
rclone_script.sh

@@ -40,7 +40,6 @@ debug ()
 	log "DEBUG" "romfilename: ${romfilename}"
 	log "DEBUG" "romfilename: ${romfilename}"
 	log "DEBUG" "romfilebase: ${romfilebase}"
 	log "DEBUG" "romfilebase: ${romfilebase}"
 	log "DEBUG" "romfileext: ${romfileext}"
 	log "DEBUG" "romfileext: ${romfileext}"
-	log "DEBUG" ""
 }
 }
 
 
 killOtherNotification ()
 killOtherNotification ()
@@ -223,18 +222,24 @@ if [ "${debug}" = "1" ]; then debug; fi
 
 
 if [ "${direction}" == "up" ]
 if [ "${direction}" == "up" ]
 then
 then
-	getROMFileName
-	prepareFilter
-	getTypeOfRemote
-	uploadSaves
+	if [ "${system}" != "kodi" ]
+	then
+		getROMFileName
+		prepareFilter
+		getTypeOfRemote
+		uploadSaves
+	fi
 fi
 fi
 
 
 if [ "${direction}" == "down" ]
 if [ "${direction}" == "down" ]
 then
 then
-	getROMFileName
-	prepareFilter
-	getTypeOfRemote
-	downloadSaves
+	if [ "${system}" != "kodi" ]
+	then
+		getROMFileName
+		prepareFilter
+		getTypeOfRemote
+		downloadSaves
+	fi
 fi
 fi
 
 
 if [ "${direction}" == "full" ]
 if [ "${direction}" == "full" ]