From a9284354dedc762a4c28fcb4523461ea3b5b783c Mon Sep 17 00:00:00 2001 From: Sergei Solovev <31823239+SeAnSolovev@users.noreply.github.com> Date: Sun, 24 Nov 2024 14:27:19 +0300 Subject: [PATCH] Fixed the search at the beginning of the line (#5) --- apt.install.sh | 2 +- install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apt.install.sh b/apt.install.sh index ffbfa9a..06b6473 100644 --- a/apt.install.sh +++ b/apt.install.sh @@ -14,7 +14,7 @@ clear # Arrays and variables used suppOs=("debian" "ubuntu") -currOs=$(grep ^ID /etc/os-release | awk -F= '{print $2}') +currOs=$(grep ^ID= /etc/os-release | awk -F= '{print $2}') logsInst="/var/log/torrentpier_install.log" # TorrentPier auth diff --git a/install.sh b/install.sh index 24dbac4..0358e21 100644 --- a/install.sh +++ b/install.sh @@ -15,7 +15,7 @@ clear # Arrays and variables used suppOs=("debian" "ubuntu") aptOs=("debian" "ubuntu") -currOs=$(grep ^ID /etc/os-release | awk -F= '{print $2}') +currOs=$(grep ^ID= /etc/os-release | awk -F= '{print $2}') logsInst="/var/log/torrentpier_install.log" # User verification