s/md5sum/cksum/g
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								4a44b3bdf5
							
						
					
				
			
			
				commit
				
					
						f69802b3d8
					
				
			
		
					 1 changed files with 1 additions and 14 deletions
				
			
		| 
						 | 
					@ -27,22 +27,9 @@ else
 | 
				
			||||||
   destination="/$__object_id"
 | 
					   destination="/$__object_id"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
os="$(cat $__global/explorer/os)"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
case "$os" in
 | 
					 | 
				
			||||||
   macosx)
 | 
					 | 
				
			||||||
      md5sum="md5"
 | 
					 | 
				
			||||||
   ;;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
   *)
 | 
					 | 
				
			||||||
      md5sum="md5sum"
 | 
					 | 
				
			||||||
   ;;
 | 
					 | 
				
			||||||
esac
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# No output if file does not exist - does definitely not match the md5sum :-)
 | 
					 | 
				
			||||||
if [ -e "$destination" ]; then
 | 
					if [ -e "$destination" ]; then
 | 
				
			||||||
   if [ -f  "$destination" ]; then
 | 
					   if [ -f  "$destination" ]; then
 | 
				
			||||||
      $md5sum < "$destination"
 | 
					      cksum < "$destination"
 | 
				
			||||||
   else
 | 
					   else
 | 
				
			||||||
      echo "NO REGULAR FILE"
 | 
					      echo "NO REGULAR FILE"
 | 
				
			||||||
   fi
 | 
					   fi
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue