Skip to content

Commit

Permalink
Update utils/common.sh
Browse files Browse the repository at this point in the history
Use more concise array append logic

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
Erotemic and coderabbitai[bot] authored Sep 24, 2024
1 parent 2003043 commit ae5ff8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,11 @@ apt_ensure(){
if dpkg -l "$PKG_NAME" | grep "^ii *$PKG_NAME" > /dev/null; then
echo "Already have PKG_NAME='$PKG_NAME'"
# shellcheck disable=SC2268,SC2206
HIT_PKGS=(${HIT_PKGS[@]} "$PKG_NAME")
HIT_PKGS+=("$PKG_NAME")
else
echo "Do not have PKG_NAME='$PKG_NAME'"
# shellcheck disable=SC2268,SC2206
MISS_PKGS=(${MISS_PKGS[@]} "$PKG_NAME")
MISS_PKGS+=("$PKG_NAME")
fi
done
# Install the packages if any are missing
Expand Down

0 comments on commit ae5ff8f

Please sign in to comment.