diff --git a/plasma_upload.sh b/plasma_upload.sh index c8ff539..b6c4881 100755 --- a/plasma_upload.sh +++ b/plasma_upload.sh @@ -20,7 +20,7 @@ do rclone moveto "$1" "$REMOTE_NAME":"$REMOTE_PATH/$variable.$ext" -v --ignore-existing # ignore existing in case the file already exists - if [ -e "$1" ] && [ "$i" -lt $MAX_COLLISSIONS ]; then # if the file is still in /tmp we must've gotten some kind of error, we assume its a Collision + if [ -e "$1" ] && [ "$i" -lt $MAX_COLLISSIONS ]; then # if the file is still at $1 we must've gotten some kind of error, we assume its a Collision kdialog --sorry "Collision $i" i=$((i+1)) variable=$(openssl rand -hex 8)