fix: 包名部分匹配仍然展示为已安装

Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
shenmo 2024-11-10 03:43:10 +00:00 committed by Gitee
parent 32c74bc5a0
commit 5bd6ad9399
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -1,2 +1,2 @@
#!/bin/bash
dpkg -l | grep "^ii" | grep -w "$1" > /dev/null
dpkg -l | grep "^ii $1 " > /dev/null