export version=$( cat version.txt ) export path="/run/user/1000/gvfs/sftp:host=192.168.0.147,user=root/var/www/downloads_page/apps/tytd/binaries" cd bin/Release/ tar -cvzf "$path"/tytd-binary-$version.tar.gz . cp "$path"/tytd-binary-$version.tar.gz "$path"/tytd-binary-latest.tar.gz cd ../..