Merge branch 'error-unalowed-chars'

This commit is contained in:
6543 2019-05-15 11:32:07 +02:00
commit 6152b4895b

View File

@ -46,6 +46,9 @@ function main() {
db_query "DELETE From File WHERE (Size=0 OR Size IS NULL OR MD5='' OR MD5 IS NULL OR Name='') AND (TTSync=$TTSYNC_EXIST OR TTSync=$TTSYNC_BACKUP);"
db_query "DELETE FROM File WHERE Folder LIKE 'Clone/%' OR Folder LIKE '.Trash-%';"
#find dublicates !

#Solve SQL ERROR: "Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '='"
#find <specific path> | while read line; do DIR="$(dirname "$line")"; File="$(basename "$line")"; mv -v "$DIR/$File" "$DIR/$(echo "$File" | tr -cd '[:alnum:][:blank:]_.-' | tr '[:blank:]' ' ' | sed 's/\ \ /\ /g')"; done
}

#erselle zwei dateilisten