properly attribute bashism patch
[debian/dump] / debian / patches / bashism_in_examples
1 Description: fix bashisms in dump_disk example script
2  Three conditionals in the examples/dump_on_cd_3/dump_disk are fixed to
3  avoid bash-specific syntax.
4 Author: Chris Lamb <chris@chris-lamb.co.uk>
5 Reviewed-by: Bdale Garbee <bdale@gag.com>
6 Bug-Debian: http://bugs.debian.org/489570
7
8 --- dump-0.4b44.orig/examples/dump_on_cd_3/dump_disk
9 +++ dump-0.4b44/examples/dump_on_cd_3/dump_disk
10 @@ -55,14 +55,14 @@ write_output() {
11         while [ "$ANSWER" != "y" ] ; do
12                 echo -n "Is the disk ready? (y/n) "
13                 read  </dev/tty ANSWER
14 -               if [ "$ANSWER" == "y" ] ; then
15 +               if [ "$ANSWER" = "y" ] ; then
16                         (${RECORD_BIN}${1}) &
17                         return 0
18 -               elif [ "$ANSWER" == "n" ] ; then
19 +               elif [ "$ANSWER" = "n" ] ; then
20                         EXIT=""
21                         echo -n "Do you really want to exit? (y/n) "
22                         read </dev/tty EXIT
23 -                       if [ "$EXIT" == "y" ] ; then
24 +                       if [ "$EXIT" = "y" ] ; then
25                                 return 1
26                         fi
27                 fi