Skip to content

Commit 568a7b8

Browse files
authored
Refactor group removal to use list-based subprocess call (#2264)
1 parent 8eb8990 commit 568a7b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ def user_group_create(
11241124
m18n.n("group_already_exist_on_system_but_removing_it", group=groupname)
11251125
)
11261126
subprocess.check_call(
1127-
f"sed --in-place '/^{groupname}:/d' /etc/group", shell=True
1127+
["sed", "--in-place", f"/^{groupname}:/d", "/etc/group"]
11281128
)
11291129
else:
11301130
raise YunohostValidationError(

0 commit comments

Comments
 (0)