Skip to content

Commit

Permalink
export: fix useless cat SC2002
Browse files Browse the repository at this point in the history
  • Loading branch information
89luca89 committed Dec 15, 2021
1 parent e637aa1 commit 3c0a478
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions distrobox-export
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,7 @@ export_service() {
# Add commmand_prefix
# Add extra flags
# Add closing quote
cat "${temp_file}" |
sed "s|^${exec_cmd}=|${exec_cmd}=${container_command_prefix}|g" |
sed "s|^${exec_cmd}=|${exec_cmd}=${container_command_prefix}|g" "${temp_file}" |
sed "s|^${exec_cmd}=.*|& ${extra_flags}|g" |
sed "s|^${exec_cmd}=.*|&\"|g" >"${exported_service_fullpath}"
# in the end we add the final quote we've opened in the "container_command_prefix"
Expand Down

0 comments on commit 3c0a478

Please sign in to comment.