test: remove unnecessary bash-ism.

Bash allows '-' in function names, but other shells don't.
So use '_' - always safe.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2012-11-01 09:56:15 +11:00
parent 5e9fd96f21
commit d5a221a525
1 changed files with 2 additions and 2 deletions

4
test
View File

@ -69,13 +69,13 @@ cleanup() {
done
}
ctrl-c() {
ctrl_c() {
exitonerror=1
}
do_setup() {
trap cleanup 0 1 3 15
trap ctrl-c 2
trap ctrl_c 2
devlist=
for d in 0 1 2 3 4 5 6 7 8 9 10 11 12