forked from ungleich-public/cdist
get rid of bashism /echo -n/printf/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
2fd0223347
commit
5940c21fba
1 changed files with 1 additions and 1 deletions
|
@ -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 $?
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue