2.11 - Ok version with fixed file handling when using input file instead of dir
This commit is contained in:
		
							parent
							
								
									d2a8a6e08d
								
							
						
					
					
						commit
						b3ba085fbe
					
				
							
								
								
									
										6
									
								
								ppss.sh
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								ppss.sh
									
									
									
									
									
								
							@ -38,7 +38,7 @@ trap 'kill_process; ' INT
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Setting some vars. Do not change. 
 | 
					# Setting some vars. Do not change. 
 | 
				
			||||||
SCRIPT_NAME="Distributed Parallel Processing Shell Script"
 | 
					SCRIPT_NAME="Distributed Parallel Processing Shell Script"
 | 
				
			||||||
SCRIPT_VERSION="2.10"
 | 
					SCRIPT_VERSION="2.11"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# The first argument to this script is always the 'mode'.
 | 
					# The first argument to this script is always the 'mode'.
 | 
				
			||||||
MODE="$1"
 | 
					MODE="$1"
 | 
				
			||||||
@ -927,7 +927,7 @@ upload_item () {
 | 
				
			|||||||
            log DEBUG "ERROR - uploading of $ITEM failed."
 | 
					            log DEBUG "ERROR - uploading of $ITEM failed."
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
            log DEBUG "Upload of item $ITEM success" 
 | 
					            log DEBUG "Upload of item $ITEM success" 
 | 
				
			||||||
            rm $ITEM
 | 
					            rm "$ITEM"
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
    else    
 | 
					    else    
 | 
				
			||||||
        cp "$ITEM" $REMOTE_OUTPUT_DIR
 | 
					        cp "$ITEM" $REMOTE_OUTPUT_DIR
 | 
				
			||||||
@ -1186,7 +1186,7 @@ commando () {
 | 
				
			|||||||
        then
 | 
					        then
 | 
				
			||||||
            if [ -e "$ITEM" ]
 | 
					            if [ -e "$ITEM" ]
 | 
				
			||||||
            then
 | 
					            then
 | 
				
			||||||
                rm $ITEM
 | 
					                rm "$ITEM"
 | 
				
			||||||
            else        
 | 
					            else        
 | 
				
			||||||
                log DEBUG "ERROR Something went wrong removing item $ITEM from local work dir."
 | 
					                log DEBUG "ERROR Something went wrong removing item $ITEM from local work dir."
 | 
				
			||||||
            fi
 | 
					            fi
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user