shellcheck __apt_mark
This commit is contained in:
parent
138705e3dc
commit
c052e507eb
3 changed files with 3 additions and 3 deletions
|
@ -26,6 +26,6 @@ apt_version_is=$(dpkg-query --show --showformat '${Version}' apt)
|
|||
|
||||
apt_version_should=0.8.14.2
|
||||
|
||||
dpkg --compare-versions $apt_version_should le $apt_version_is \
|
||||
dpkg --compare-versions "$apt_version_should" le "$apt_version_is" \
|
||||
&& echo 0 \
|
||||
|| echo 1
|
||||
|
|
|
@ -24,7 +24,7 @@ else
|
|||
name="$__object_id"
|
||||
fi
|
||||
|
||||
dpkg-query --show --showformat '${Status}' $name 2>/dev/null \
|
||||
dpkg-query --show --showformat '${Status}' "$name" 2>/dev/null \
|
||||
| grep -q 'ok installed' \
|
||||
&& echo 0 \
|
||||
|| echo 1
|
||||
|
|
|
@ -24,4 +24,4 @@ else
|
|||
name="$__object_id"
|
||||
fi
|
||||
|
||||
apt-mark showhold | grep -q $name && echo hold || echo unhold
|
||||
apt-mark showhold | grep -q "$name" && echo hold || echo unhold
|
||||
|
|
Loading…
Reference in a new issue