Zachary Kotlarek hace 13 años
padre
commit
f5ca53a731
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      sync.sh

+ 2 - 1
sync.sh

@@ -111,7 +111,8 @@ for (( i=1; i<=${NUM_FILES}; i++ )); do
 	# Determine the action (i.e. copy to or delete from remote)
 	# Determine the action (i.e. copy to or delete from remote)
 	if [ "${ACTION}" == '+' ]; then
 	if [ "${ACTION}" == '+' ]; then
 		if [ -n "${NO_DELETE}" ]; then
 		if [ -n "${NO_DELETE}" ]; then
-			; # Do nothing
+			# Do nothing
+			true
 		elif [ -d "${PATH_REMOTE}" ]; then
 		elif [ -d "${PATH_REMOTE}" ]; then
 			echo "Removing directory: ${FILE}"
 			echo "Removing directory: ${FILE}"
 			rmdir "${PATH_REMOTE}"
 			rmdir "${PATH_REMOTE}"