From 207bb2c688dcddb31cd629eb56ffdc1bb64ae1e9 Mon Sep 17 00:00:00 2001 From: xpamych Date: Sun, 2 Apr 2023 15:18:28 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20sed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hlna-dev-git/postremove.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hlna-dev-git/postremove.sh b/hlna-dev-git/postremove.sh index 28162bb..ea8a779 100644 --- a/hlna-dev-git/postremove.sh +++ b/hlna-dev-git/postremove.sh @@ -8,7 +8,7 @@ do # Check if the line is in the file grep -qF "$line1_to_remove" "$file_path" if [ $? -eq 0 ]; then - sed -i "/$line_to_remove/d" "$file_path" + sed -i "/$line1_to_remove/d" "$file_path" echo "Alias hlna удалён из $file_path" else echo "Alias hlna нет в $file_path" @@ -16,7 +16,7 @@ do grep -qF "$line2_to_remove" "$file_path" if [ $? -eq 0 ]; then - sed -i "/$line_to_remove/d" "$file_path" + sed -i "/$line2_to_remove/d" "$file_path" echo "Alias hlna-bot удалён из $file_path" else echo "Alias hlna-bot нет в $file_path"