forked from Plemya-x/ALR
Поправлена ошибка определения pacman
This commit is contained in:
parent
e074b1107b
commit
23f70fae34
@ -74,7 +74,9 @@ if [ -z "$noPkgMgr" ]; then
|
|||||||
echo "Полученный список файлов:"
|
echo "Полученный список файлов:"
|
||||||
echo "$fileList"
|
echo "$fileList"
|
||||||
|
|
||||||
if [ "$pkgMgr" == "apt" ]; then
|
if [ "$pkgMgr" == "pacman" ]; then
|
||||||
|
latestFile=$(echo "$fileList" | grep -E 'alr-bin-.*.pkg.tar.zst' | sort -V | tail -n 1)
|
||||||
|
elif [ "$pkgMgr" == "apt" ]; then
|
||||||
latestFile=$(echo "$fileList" | grep -E 'alr-bin_.*_amd64.deb' | sort -V | tail -n 1)
|
latestFile=$(echo "$fileList" | grep -E 'alr-bin_.*_amd64.deb' | sort -V | tail -n 1)
|
||||||
elif [[ "$pkgMgr" == "dnf" || "$pkgMgr" == "yum" || "$pkgMgr" == "zypper" ]]; then
|
elif [[ "$pkgMgr" == "dnf" || "$pkgMgr" == "yum" || "$pkgMgr" == "zypper" ]]; then
|
||||||
latestFile=$(echo "$fileList" | grep -E 'alr-bin-.*.x86_64.rpm' | sort -V | tail -n 1)
|
latestFile=$(echo "$fileList" | grep -E 'alr-bin-.*.x86_64.rpm' | sort -V | tail -n 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user