From 799bf96b16b935059854c0a30dc2f8644cfc30aa Mon Sep 17 00:00:00 2001 From: achi Date: Wed, 5 Jun 2024 12:18:48 +1000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D1=83=20=D1=81=D0=BA?= =?UTF-8?q?=D1=80=D0=B8=D0=BF=D1=82=D0=B0=20=D1=83=D1=81=D1=82=D0=B0=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=BA=D0=B8=20=D0=9B=D0=AD=D0=A0=D0=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitattributes | 2 ++ install-powershell.sh | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..100f60e --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Bash скрипты всегда используют окончание строк LF +*.sh text eol=lf diff --git a/install-powershell.sh b/install-powershell.sh index dce6229..bd6ca61 100755 --- a/install-powershell.sh +++ b/install-powershell.sh @@ -39,7 +39,12 @@ then Install-Rhel else echo "Установите powershell для вашей $NAME, чтобы воспользоваться скриптом установки ЛЭРС" + + exit 1; fi else echo "Powershell установлен" fi + +pwsh -Command "Invoke-WebRequest https://sc.lers.ru/lers/Installer/raw/branch/main/Install-Lers.ps1 -OutFile Install-Lers.ps1" +chmod +x Install-Lers.ps1