Merge pull request #28615 from The-Loeki/patch-1

Fixes to FreeBSD pkg
This commit is contained in:
Mike Place 2015-11-05 16:43:33 -07:00
commit cf79722260

View File

@ -465,9 +465,9 @@ def _rehash():
Recomputes internal hash table for the PATH variable. Use whenever a new
command is created during the current session.
'''
shell = __salt__['environ.get']('SHELL', output_loglevel='trace')
shell = __salt__['environ.get']('SHELL')
if shell.split('/')[-1] in ('csh', 'tcsh'):
__salt__['cmd.run']('rehash', output_loglevel='trace')
__salt__['cmd.shell']('rehash', output_loglevel='trace')
def file_list(*packages):