File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -40,19 +40,26 @@ _args=$*
4040# ###### region Detect package manager #######
4141
4242if [ -x " $( command -v apt-get) " ]; then
43+
4344 echo >&2 " Package manager identified: apt-get"
4445 _PKG_MANAGER_install=" apt-get install -q -y"
4546 _PKG_MANAGER_remove=" apt-get remove -q -y"
4647
4748elif [ -x " $( command -v dnf) " ]; then
49+
50+ echo >&2 " Package manager identified: dnf"
4851 _PKG_MANAGER_install=" dnf install -yq"
4952 _PKG_MANAGER_remove=" dnf remove -yq"
5053
5154elif [ -x " $( command -v pacman) " ]; then
55+
56+ echo >&2 " Package manager identified: pacman"
5257 _PKG_MANAGER_install=" pacman -S --noconfirm"
5358 _PKG_MANAGER_remove=" pacman -Rs --noconfirm"
5459
5560elif [ -x " $( command -v apk) " ]; then
61+
62+ echo >&2 " Package manager identified: apk"
5663 _PKG_MANAGER_install=" apk add -q --no-cache --no-progress"
5764 _PKG_MANAGER_remove=" apk del -q --no-cache --no-progress"
5865
You can’t perform that action at this time.
0 commit comments