mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Fixed added questions beeing empty arrays, removed some consolelogs
This commit is contained in:
parent
6c781eba97
commit
661ceb1688
4 changed files with 7 additions and 14 deletions
|
@ -2,11 +2,10 @@
|
|||
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')
|
||||
data=$(tr -d '\n' <"$1" | awk '$1=$1')
|
||||
echo sending
|
||||
echo "SENT DATA:"
|
||||
../bin/hr.sh
|
||||
|
@ -14,4 +13,3 @@ else
|
|||
../bin/hr.sh
|
||||
curl -X POST --data "datatoadd=$data" "$url/isAdding"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue