Ignore /bin/bash when selecting the correct shell for a user. Closes LP#1122031
This commit is contained in:
parent
bab9f3c1a1
commit
865c343e80
|
@ -125,8 +125,7 @@ def shell_lookup():
|
|||
usershell = pwd.getpwuid(os.getuid())[6]
|
||||
except KeyError:
|
||||
usershell = None
|
||||
shells = [os.getenv('SHELL'), usershell, 'bash',
|
||||
'zsh', 'tcsh', 'ksh', 'csh', 'sh']
|
||||
shells = [usershell, 'bash', 'zsh', 'tcsh', 'ksh', 'csh', 'sh']
|
||||
|
||||
for shell in shells:
|
||||
if shell is None:
|
||||
|
|
Loading…
Reference in New Issue