Updated ShellCheck to 0.8.0 and Hadolint to 2.8.0 (#2329)

Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
This commit is contained in:
Georg Lauterbach 2021-12-19 11:56:22 +01:00 committed by GitHub
parent 6d06149581
commit 99cc9fec2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 35 additions and 28 deletions

View file

@ -8,7 +8,7 @@
function dovecot_quota_to_hr()
{
if [ "${1}" == "-" ]
if [[ ${1} == "-" ]]
then
echo "~"
else

View file

@ -35,7 +35,8 @@ fi
create_lock # Protect config file with lock to avoid race conditions
touch "${DATABASE}"
if [ -z "${QUOTA}" ]; then
if [[ -z ${QUOTA} ]]
then
read -r -s "Enter quota (e.g. 10M): " QUOTA
echo
[[ -z "${QUOTA}" ]] && errex "Quota must not be empty. Use 0 for unlimited quota"