From 5940c21fba007f9f8fad0650d696ed2056a57f8e Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Tue, 4 Oct 2011 14:56:59 +0200 Subject: [PATCH] get rid of bashism /echo -n/printf/ Signed-off-by: Steven Armstrong --- conf/type/__partition_msdos_apply/files/lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/type/__partition_msdos_apply/files/lib.sh b/conf/type/__partition_msdos_apply/files/lib.sh index e24c1cb7..01a817a8 100644 --- a/conf/type/__partition_msdos_apply/files/lib.sh +++ b/conf/type/__partition_msdos_apply/files/lib.sh @@ -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 $? }