shellcheck __apt_mark

This commit is contained in:
ander 2017-07-02 11:50:22 +03:00
parent 138705e3dc
commit c052e507eb
3 changed files with 3 additions and 3 deletions

View file

@ -26,6 +26,6 @@ apt_version_is=$(dpkg-query --show --showformat '${Version}' apt)
apt_version_should=0.8.14.2 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 0 \
|| echo 1 || echo 1

View file

@ -24,7 +24,7 @@ else
name="$__object_id" name="$__object_id"
fi fi
dpkg-query --show --showformat '${Status}' $name 2>/dev/null \ dpkg-query --show --showformat '${Status}' "$name" 2>/dev/null \
| grep -q 'ok installed' \ | grep -q 'ok installed' \
&& echo 0 \ && echo 0 \
|| echo 1 || echo 1

View file

@ -24,4 +24,4 @@ else
name="$__object_id" name="$__object_id"
fi fi
apt-mark showhold | grep -q $name && echo hold || echo unhold apt-mark showhold | grep -q "$name" && echo hold || echo unhold