pull/82495/head
hydromelvictor 3 months ago
parent 0575fac7c9
commit fda03d76d9

@ -917,11 +917,9 @@ class User(object):
if self.move_home:
cmd.append('-m')
if self.shell is not None:
expanded_shell = os.path.expanduser(self.shell)
if info[6] != expanded_shell:
cmd.append('-s')
cmd.append(expanded_shell)
if self.shell is not None and info[6] != self.shell:
cmd.append('-s')
cmd.append(self.shell)
if self.expires is not None:

Loading…
Cancel
Save