all flags as flags

This commit is contained in:
Thomas Levine 2016-04-06 23:18:38 +00:00
parent 32ac65cf3e
commit 6a7e58c944
1 changed files with 4 additions and 13 deletions

View File

@ -1,22 +1,13 @@
params="$(basename "${0}")"
fullhost="$(echo "${params}" | cut -d\ -f1)"
hostname="$(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 -e "ssh ${params}" \
../urchin ../tests "${host}":"${urchin_dir}"
ssh -p "${port}" "${host}" \
rsync --archive -e "ssh ${flags}" \
../urchin ../tests "${hostname}":"${urchin_dir}"
ssh "${hostname}" ${flags} \
"cd ${urchin_dir} && ./urchin --run-in-series tests"