Commit a9a32ec4 authored by Vitaly Lipatov's avatar Vitaly Lipatov

distr_info: improve package manager detection for Windows

parent 2b70ec27
......@@ -175,9 +175,10 @@ case $DISTRIB_ID in
CMD="conary"
;;
Windows)
CMD="appget"
is_command $CMD || CMD="chocolatey"
is_command $CMD || CMD="winget"
is_command winget && echo "winget" && return
is_command appget && CMD="appget"
is_command chocolatey && CMD="chocolatey"
is_command npackdcl && CMD="npackd"
;;
MacOS)
CMD="homebrew"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment