Skip to content

Commit 46d1722

Browse files
committed
feat: add check to skip install prompt if package is already installed in list.sh
1 parent 97dcd65 commit 46d1722

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

setup/packages/list.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ installPackages() {
3535
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' "$packageName" | grep "install ok installed")
3636
echo "Checking for $packageName: $PKG_OK"
3737
while true; do
38+
if [[ -n $PKG_OK ]]; then
39+
echo "$packageName is already installed."
40+
echo ""
41+
break
42+
fi
3843
if [[ $ACCEPT_INSTALL =~ ^[Yy]$ ]]; then
3944
yn="y"
4045
else

0 commit comments

Comments
 (0)