Skip to content

Commit 5185cd8

Browse files
committed
Do not try to install empty list of pkgs
1 parent d6fd8d8 commit 5185cd8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/func.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ package_manager() {
7777
# $2-: list of packages
7878
package_install() {
7979
local pkgmgr=$1; shift
80+
if [ $# -eq 0 ]; then
81+
msg "No new packages needed for install..."
82+
return
83+
fi
8084
msg "Installing system packages [$*] using [$pkgmgr]..."
8185
case ${pkgmgr} in
8286
BREW )

0 commit comments

Comments
 (0)