mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
commit
cf79722260
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user