more data in filename

This commit is contained in:
Thomas Levine 2016-04-06 23:14:25 +00:00
parent d1c8f78585
commit 32ac65cf3e
1 changed files with 20 additions and 3 deletions

View File

@ -1,5 +1,22 @@
host="$(basename "${0}")"
params="$(basename "${0}")"
fullhost="$(echo "${params}" | cut -d\ -f1)"
if echo "${params}" | grep -q \ ; then
flags="$(echo "${params}" | cut -d\ -f2)"
fi
hostname="$(echo "${fullhost}" | cut -d: -f1)"
if echo "${fullhost}" | grep -q : ; then
port="$(echo "${fullhost}" | cut -d: -f2)"
else
port=22
fi
echo $port
exit
urchin_dir=.urchin-cross-shell-test
rsync --archive ../urchin ../tests "${host}":"${urchin_dir}"
ssh "${host}" "cd ${urchin_dir} && ./urchin --run-in-series tests"
rsync --archive -e "ssh ${params}" \
../urchin ../tests "${host}":"${urchin_dir}"
ssh -p "${port}" "${host}" \
"cd ${urchin_dir} && ./urchin --run-in-series tests"