sync: fix 包名部分匹配也被标记为已安装

Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
2024-11-10 03:43:34 +00:00
committed by Gitee
parent 53df0b7ba6
commit 93e2c6bee6

View File

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