diff --git a/gestion/chsh.py b/gestion/chsh.py index 75eda1ea..e5b11837 100644 --- a/gestion/chsh.py +++ b/gestion/chsh.py @@ -38,7 +38,7 @@ fd=open('/etc/shells') lines=fd.readlines() fd.close() -shells = [line for line in lines if not (line.startswith('#') or line.endswith('/rssh'))] +shells = [line.strip() for line in lines if not (line.startswith('#') or line.endswith('/rssh'))] if not shell in shells: print 'Shell invalide. Les shells valides sont :'