#!/bin/bash set -e TMP=$(mktemp -d) trap 'rm -rf "$TMP"' EXIT git clone --depth 1 -q https://git.papatramp.ru/PapaTramp/RDP-login-monitor.git "$TMP/rdp" git clone --depth 1 -q https://git.papatramp.ru/PapaTramp/ssh-monitor.git "$TMP/ssh" echo RDP_version_txt: cat "$TMP/rdp/version.txt" 2>/dev/null || echo missing echo RDP_script: grep -m1 ScriptVersion "$TMP/rdp/Login_Monitor.ps1" 2>/dev/null || echo missing echo SSH_version: grep -m1 '^SSH_MONITOR_VERSION=' "$TMP/ssh/ssh-monitor" 2>/dev/null || cat "$TMP/ssh/version.txt" 2>/dev/null || echo missing