Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Commit 52bbeaa

Browse files
authored
fix: Fixed checking of added repositories in ubuntu (#76)
1 parent 4e70740 commit 52bbeaa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

deb.install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ done
5151

5252
# Массив с поддерживаемыми версиями операционной системы
5353
suppOs=("Debian 11" "Debian 12" "Ubuntu 22.04" "Ubuntu 24.04")
54-
repoExp=$("*.list" "*.sources")
54+
repoExp=("jammy.list" "jammy.sources" "noble.list" "noble.sources")
5555

5656
# Получаем текущую версию операционной системы
5757
disOs=$(lsb_release -si)
@@ -169,7 +169,7 @@ while true; do
169169

170170
# Проверяем наличие каждого файла
171171
for exp in "${repoExp[@]}"; do
172-
if [ ! -f "/etc/apt/sources.list.d/ondrej-ubuntu-php-$exp" ]; then
172+
if [ -f "/etc/apt/sources.list.d/ondrej-ubuntu-php-$exp" ]; then
173173
foundExp=true
174174
fi
175175
done
@@ -214,7 +214,7 @@ while true; do
214214

215215
# Проверяем наличие каждого файла
216216
for exp in "${repoExp[@]}"; do
217-
if [ ! -f "/etc/apt/sources.list.d/ondrej-ubuntu-nginx-$exp" ]; then
217+
if [ -f "/etc/apt/sources.list.d/ondrej-ubuntu-nginx-$exp" ]; then
218218
foundExp=true
219219
fi
220220
done
@@ -575,7 +575,7 @@ EOF
575575

576576
# Проверяем наличие каждого файла
577577
for exp in "${repoExp[@]}"; do
578-
if [ ! -f "/etc/apt/sources.list.d/ondrej-ubuntu-nginx-$exp" ]; then
578+
if [ -f "/etc/apt/sources.list.d/ondrej-ubuntu-nginx-$exp" ]; then
579579
foundExp=true
580580
fi
581581
done

0 commit comments

Comments
 (0)