Skip to content

Commit 0c1b7a2

Browse files
committed
Cleaned up changes
1 parent 5df9e96 commit 0c1b7a2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Rakefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,7 @@ def run_cmd
5454
if podman?
5555
"podman run --rm -it -v #{__dir__}:/doc #{image}"
5656
elsif docker?
57-
user_section = ''
58-
current_dir = '.'
59-
if !windows?
60-
user_section = "-u '#{user_group}'"
61-
end
57+
user_section = windows? ? nil : "-u '#{user_group}'"
6258
"docker run --rm -it -v \"#{__dir__}:/doc\" #{user_section} #{image}"
6359
else
6460
raise StandardError, "Cannot find any suitable container runtime to build. Need 'podman' or 'docker' installed."

0 commit comments

Comments
 (0)