btrbk: use printf instead of echo

Posix echo does not know about -e, -n flags, use printf instead.
pull/504/head
Axel Burri 2022-11-16 02:07:05 +01:00
parent 5c561d8c14
commit f52de197d6
1 changed files with 1 additions and 1 deletions

2
btrbk
View File

@ -2092,7 +2092,7 @@ sub system_write_raw_info($$;@)
DEBUG "Writing (" . ($append ? "append:" . join(",", keys %$raw_info) : "create") . ") raw info file: $info_file";
my $ret = run_cmd(
{ cmd => [ 'echo', '-e', '-n', '"' . (join '\n', @line) . '\n"' ] },
{ cmd => [ 'printf', quoteshell(join('\n', @line) . '\n') ] },
{ ($append ? "append_to_file" : "redirect_to_file") => { unsafe => $info_file },
rsh => vinfo_rsh($vol),
});