We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5df9e96 commit 0c1b7a2Copy full SHA for 0c1b7a2
Rakefile
@@ -54,11 +54,7 @@ def run_cmd
54
if podman?
55
"podman run --rm -it -v #{__dir__}:/doc #{image}"
56
elsif docker?
57
- user_section = ''
58
- current_dir = '.'
59
- if !windows?
60
- user_section = "-u '#{user_group}'"
61
- end
+ user_section = windows? ? nil : "-u '#{user_group}'"
62
"docker run --rm -it -v \"#{__dir__}:/doc\" #{user_section} #{image}"
63
else
64
raise StandardError, "Cannot find any suitable container runtime to build. Need 'podman' or 'docker' installed."
0 commit comments