diff options
author | Raphaël Hertzog <hertzog@debian.org> | 2009-10-01 23:48:40 +0200 |
---|---|---|
committer | Raphaël Hertzog <hertzog@debian.org> | 2009-10-02 00:47:03 +0200 |
commit | 0c21f1617933ab35a5b081fe314ca5a864a9962a (patch) | |
tree | 06f213da7634ce6b2f83cb6c363538b9f64c6d88 /dselect/methods | |
parent | 65a0572e3fb08a218ca7120d530f9f64799bcaec (diff) | |
download | dpkg-0c21f1617933ab35a5b081fe314ca5a864a9962a.tar.gz |
dselect-multicd: fix bashism in setup script
Use printf instead of echo -e. Closes: #530070
Diffstat (limited to 'dselect/methods')
-rwxr-xr-x | dselect/methods/multicd/setup | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dselect/methods/multicd/setup b/dselect/methods/multicd/setup index fc0be540f..7bcfbe096 100755 --- a/dselect/methods/multicd/setup +++ b/dselect/methods/multicd/setup @@ -119,7 +119,7 @@ getblockdev () { then blockbase="`echo \"$tryblockdevice\" | sed -e 's/[0-9]\{1,\}$//'`" set +e - echo -e "p\nq\n" | fdisk "$blockbase" 2>/dev/null >$tp.f + printf 'p\nq\n' | fdisk "$blockbase" 2>/dev/null >$tp.f set -e proposeddevice="$tryblockdevice" perl -ne ' next unless /^ *Device +Boot +Begin +Start +End +Blocks +Id +System *$/i .. !/\S/; @@ -334,10 +334,10 @@ fi if [ $option = harddisk2 ] then set +e - echo -e 'p\nq\n' | fdisk /dev/hda 2>/dev/null >$tp.f + printf 'p\nq\n' | fdisk /dev/hda 2>/dev/null >$tp.f if [ $? != 0 ] then - echo -e 'p\nq\n' | fdisk /dev/sda 2>/dev/null >$tp.f + printf 'p\nq\n' | fdisk /dev/sda 2>/dev/null >$tp.f fi set -e perl -ne ' |