Skip to content

Commit f59b6be

Browse files
committed
Quote input paths passed to tar command
1 parent 9dfd1ba commit f59b6be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/grisp_tools_firmware.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ deploy_bundle(State = #{edifa_pid := Pid, bundle := BundleFile}, PartId) ->
370370
{error, Reason, State2} ->
371371
event(State2, [{error, Reason}]);
372372
{ok, MountPoint, State2} ->
373-
ExpandCmd = ["tar -C ", MountPoint, " -xzf ", BundleFile],
373+
ExpandCmd = ["tar -C '", MountPoint, "' -xzf '", BundleFile, "'"],
374374
{{ok, _}, State3} = shell(State2, ExpandCmd),
375375
Opts2 = edifa_opts(State2),
376376
case edifa:unmount(Pid, PartId, Opts2) of

0 commit comments

Comments
 (0)