Поправлена ошибка определения pacman
This commit is contained in:
		| @@ -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) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user