Fix user mapping when variables aren't given.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -25,7 +25,7 @@ adjust_tool_uid_gid() { | ... | @@ -25,7 +25,7 @@ adjust_tool_uid_gid() { |
25 | usermod_args+=(-aG "${new_groups[*]}") | 25 | usermod_args+=(-aG "${new_groups[*]}") |
26 | fi | 26 | fi |
27 | fi | 27 | fi |
28 | if [[ ${#usermod_args[*]} ]]; then | 28 | if [[ ${#usermod_args[*]} -gt 0 ]]; then |
29 | usermod "${usermod_args[@]}" tool | 29 | usermod "${usermod_args[@]}" tool |
30 | fi | 30 | fi |
31 | } | 31 | } | ... | ... |
-
Please register or sign in to post a comment