I'm executing a script on a server with remote ssh
#!/bin/bash
VPS_IP=192.168.1.10
VPS_USERNAME=root
VPS_PASSWORD=ubuntu
sshpass -p "$VPS_PASSWORD" ssh $VPS_USERNAME@$VPS_IP 'bash -s' < /arguments1.sh
echo $LC_ip
in the arguments1.sh file is
#!/bin/bash
LC_ip=$(http://v6.ident.me)
How do I get the LC_ip back in the local script?