Commit 0c74624c authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Minor fix for shell quoting when sending the empty string over via ssh

(for the -G arg to pw usermod).
parent de79b3e6
......@@ -320,6 +320,8 @@ foreach my $uid (@userlist) {
print "Updating user $uid record on $control_node.\n";
if ($control_node ne $BOSSNODE) {
$groupargument =~ s/\"/\\"/g;
if (system("$SSH -host $control_node ".
"'$USERMOD $uid -g $project $groupargument'")) {
fatal("Could not modify user $uid record on $control_node.");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment