~rsandifo/+junk/loop-microbenchmarks

« back to all changes in this revision

Viewing changes to scripts/run-ssh.sh

  • Committer: Richard Sandiford
  • Date: 2011-09-13 14:15:45 UTC
  • Revision ID: richard.sandiford@linaro.org-20110913141545-wn4t02b23cgveohd
Fix error checking.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
userat=
7
7
userl=
8
8
command=$base
9
 
case $1 in
10
 
  --root)
11
 
    userat=root@
12
 
    userl="-l root"
13
 
    command="nice -20 $command"
14
 
    shift
15
 
    ;;
16
 
esac
 
9
if test $# -gt 0; then
 
10
  case $1 in
 
11
    --root)
 
12
      userat=root@
 
13
      userl="-l root"
 
14
      command="nice -20 $command"
 
15
      shift
 
16
      ;;
 
17
  esac
 
18
fi
17
19
 
18
20
if test $# -lt 2; then
19
21
  echo >&2 "Usage: $0 [--root] <board> <command>"