| Server IP : 157.22.201.140 / Your IP : 216.73.216.74 Web Server : nginx/1.30.1 System : Linux mit.vincode.fvds.ru 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/ansible/plugins/shell/__pycache__/ |
Upload File : |
�
1<�ep � �J � d dl mZmZmZ eZdZd dlZd dlm Z G d� de � Z
y)� )�absolute_import�division�print_functiona
name: sh
short_description: "POSIX shell (/bin/sh)"
version_added: historical
description:
- This shell plugin is the one you want to use on most Unix systems, it is the most compatible and widely installed shell.
extends_documentation_fragment:
- shell_common
N)� ShellBasec �N � e Zd Z ed� ZdZdZdZdZdZ dZ
dZd Zd
Z
dZdZd
� Zy)�ShellModule)�sh�zsh�bash�dash�kshr �echo�;�
z> /dev/null 2>&1z&&z||z"`z`"�(�)c �\ � t j |� }dt ||| j | j �� z }dj ||| j � dj ||| j � g}d| j z j |� }|�d|�d| j �d|�d �}|S )
Nz�rc=flag; [ -r %(p)s ] %(shell_or)s rc=2; [ -f %(p)s ] %(shell_or)s rc=1; [ -d %(p)s ] %(shell_and)s rc=3; %(i)s -V 2>/dev/null %(shell_or)s rc=4; [ x"$rc" != "xflag" ] %(shell_and)s echo "${rc} "%(p)s %(shell_and)s exit 0)�p�i� shell_and�shell_ora ({0} -c 'import hashlib; BLOCKSIZE = 65536; hasher = hashlib.sha1();{2}afile = open("'{1}'", "rb"){2}buf = afile.read(BLOCKSIZE){2}while len(buf) > 0:{2} hasher.update(buf){2} buf = afile.read(BLOCKSIZE){2}afile.close(){2}print(hasher.hexdigest())' 2>/dev/null)z�({0} -c 'import sha; BLOCKSIZE = 65536; hasher = sha.sha();{2}afile = open("'{1}'", "rb"){2}buf = afile.read(BLOCKSIZE){2}while len(buf) > 0:{2} hasher.update(buf){2} buf = afile.read(BLOCKSIZE){2}afile.close(){2}print(hasher.hexdigest())' 2>/dev/null)z %s z; � z (echo '0 'r )�shlex�quote�dict�
_SHELL_AND� _SHELL_OR�format�_SHELL_EMBEDDED_PY_EOL�join)�self�path�
python_interp�shell_escaped_path�test�csums�cmds �:/usr/lib/python3/dist-packages/ansible/plugins/shell/sh.py�checksumzShellModule.checksum/ s � �. #�[�[��.�� v� y}� @R� Vc� os� o~� o~� IM� IW� IW� yX� X��
[�
b�
b� cp� rD� FJ� Fa� Fa�
b�
R�
Y�
Y� Zg� i{� }A� }X� }X�
Y�
��
����&�,�,�U�3��.2�C����I[�\���
� N)�__name__�
__module__�__qualname__� frozenset�COMPATIBLE_SHELLS�SHELL_FAMILY�ECHO�COMMAND_SEPr �_SHELL_REDIRECT_ALLNULLr r �_SHELL_SUB_LEFT�_SHELL_SUB_RIGHT�_SHELL_GROUP_LEFT�_SHELL_GROUP_RIGHTr) � r* r( r r sU � � "�"F�G���L� �D��K� "��0���J��I��O������� r* r )�
__future__r r r �type�
__metaclass__�
DOCUMENTATIONr �ansible.plugins.shellr r r8 r* r( �<module>r>