Переглянути джерело

grass.py: print warning when shell is not recognized.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55856 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 роки тому
батько
коміт
8a1a2be389
1 змінених файлів з 4 додано та 1 видалено
  1. 4 1
      lib/init/grass.py

+ 4 - 1
lib/init/grass.py

@@ -787,7 +787,10 @@ def check_shell():
         grass_env_file = os.path.join(grass_config_dir, 'cshrc')
     elif sh in ['bash', 'msh', 'cygwin']:
         grass_env_file = os.path.join(grass_config_dir, 'bashrc')
-    
+    else:
+        grass_env_file = os.path.join(grass_config_dir, 'bashrc')
+        warning(_("Unsupported shell <%s>: %s") % (sh, grass_env_file))
+              
     # check for SHELL
     if not os.getenv('SHELL'):
         fatal(_("The SHELL variable is not set"))