mirror of https://github.com/digint/btrbk
btrbk: use printf instead of echo
Posix echo does not know about -e, -n flags, use printf instead.pull/504/head
parent
5c561d8c14
commit
f52de197d6
2
btrbk
2
btrbk
|
@ -2092,7 +2092,7 @@ sub system_write_raw_info($$;@)
|
||||||
|
|
||||||
DEBUG "Writing (" . ($append ? "append:" . join(",", keys %$raw_info) : "create") . ") raw info file: $info_file";
|
DEBUG "Writing (" . ($append ? "append:" . join(",", keys %$raw_info) : "create") . ") raw info file: $info_file";
|
||||||
my $ret = run_cmd(
|
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 },
|
{ ($append ? "append_to_file" : "redirect_to_file") => { unsafe => $info_file },
|
||||||
rsh => vinfo_rsh($vol),
|
rsh => vinfo_rsh($vol),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue