mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-03 17:44:49 +02:00
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:
parent
6d06149581
commit
99cc9fec2a
12 changed files with 35 additions and 28 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
function dovecot_quota_to_hr()
|
||||
{
|
||||
if [ "${1}" == "-" ]
|
||||
if [[ ${1} == "-" ]]
|
||||
then
|
||||
echo "~"
|
||||
else
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue