get rid of bashism /echo -n/printf/

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2011-10-04 14:56:59 +02:00
parent 2fd0223347
commit 5940c21fba

View file

@ -11,7 +11,7 @@ fdisk_command() {
local cmd="$2"
debug fdisk_command "running fdisk command '${cmd}' on device ${device}"
echo -en "${cmd}\nw\n" | fdisk -c -u "$device"
printf "${cmd}\nw\n" | fdisk -c -u "$device"
return $?
}