mirror of
https://github.com/Melorise/spark-store.git
synced 2026-11-07 14:49:33 +00:00
7 lines
165 B
Bash
Executable File
7 lines
165 B
Bash
Executable File
#!/bin/bash
|
|
# 检查包是否已安装
|
|
# 返回 0 表示已安装,非 0 表示未安装
|
|
|
|
dpkg -s "$1" 2>/dev/null | grep -q 'Status: install ok installed'
|
|
exit $?
|