mirror of
				https://gitlab.com/MrFry/mrfrys-node-server
				synced 2025-04-01 20:24:18 +02:00 
			
		
		
		
	Post test data accepts file as param now, image comparing fix
This commit is contained in:
		@@ -2,14 +2,16 @@
 | 
			
		||||
url=$(head -n 1 ../serverAddress)
 | 
			
		||||
echo "Server url: $url"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if [ "$#" -ne 1 ]; then
 | 
			
		||||
  echo "1 param required: json to send to localhost, got $#"
 | 
			
		||||
else
 | 
			
		||||
  data=$(tr -d '\n' < "$1" | awk '$1=$1')
 | 
			
		||||
  echo sending
 | 
			
		||||
  echo "SENT DATA:"
 | 
			
		||||
  ../bin/hr.sh
 | 
			
		||||
  echo "$1"
 | 
			
		||||
  echo "$data"
 | 
			
		||||
  ../bin/hr.sh
 | 
			
		||||
  curl -X POST --data "datatoadd=$1" "$url/isAdding"
 | 
			
		||||
  curl -X POST --data "datatoadd=$data" "$url/isAdding"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user