install_update_dovecot-2.4.sh: use '2>&1' instead of '2<&1' for stderr redirection

'2<&1' duplicates fd 1 as an input descriptor. In bash it happens to
behave like '2>&1', but it is unusual and misleading. Use the common
form '2>&1' (cp, grep, pigeonhole configure/make/make install).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
chrisandClaude Opus 5.5 committed 2026-11-24 15:13:37 +01:00
1 parent 38c7ce8f6a
commit 29fe6d0e0d
1 file changed
+5 -5
+5 -5
View File
@@ -3826,7 +3826,7 @@ echononl " Add /usr/local/dovecot/bin to PATH variable.."
if grep -Eq '^\s*checkdir="?/usr/local/dovecot/bin"?$' "${_file}"; then
echo -e "$rc_skipped"
else
cp "${_file}" "/tmp/etc_profile.${backup_date}" > "${log_file}" 2<&1
cp "${_file}" "/tmp/etc_profile.${backup_date}" > "${log_file}" 2>&1
if [[ $? -gt 0 ]] ; then
echo -e "$rc_failed"
error "$(cat $log_file)"
@@ -3863,7 +3863,7 @@ fi
echononl " Copy Manpages if not exists.."
## - Manpages
## -
if ! grep /usr/local/dovecot/share/man /etc/manpath.config > /dev/null 2<&1 ; then
if ! grep /usr/local/dovecot/share/man /etc/manpath.config > /dev/null 2>&1 ; then
echo >> /etc/manpath.config
echo "MANDATORY_MANPATH /usr/local/dovecot/share/man /var/cache/man" >> /etc/manpath.config
echo "MANPATH_MAP /usr/local/dovecot/bin /usr/local/dovecot/share/man" >> /etc/manpath.config
@@ -3893,7 +3893,7 @@ cd ${dovecot_pigeonhole_archiv_dir}
echononl " Configure Pigeonhole ManageSieve.."
./configure \
--prefix=/usr/local/dovecot-${_version} \
--with-dovecot=/usr/local/dovecot-${_version}/lib/dovecot > ${_log_dir}/${dovecot_pigeonhole_archiv_prefix}-configure.log 2<&1
--with-dovecot=/usr/local/dovecot-${_version}/lib/dovecot > ${_log_dir}/${dovecot_pigeonhole_archiv_prefix}-configure.log 2>&1
if [ "$?" = 0 ]; then
echo -e "$rc_done"
else
@@ -3902,7 +3902,7 @@ else
fi
echononl " Compile Pigeonhole ManageSieve.."
make > ${_log_dir}/${dovecot_pigeonhole_archiv_prefix}-make.log 2<&1
make > ${_log_dir}/${dovecot_pigeonhole_archiv_prefix}-make.log 2>&1
if [ "$?" = 0 ]; then
echo -e "$rc_done"
else
@@ -3911,7 +3911,7 @@ else
fi
echononl " Install Pigeonhole ManageSieve.."
make install > ${_log_dir}/${dovecot_pigeonhole_archiv_prefix}-install.log 2<&1
make install > ${_log_dir}/${dovecot_pigeonhole_archiv_prefix}-install.log 2>&1
if [ "$?" = 0 ]; then
echo -e "$rc_done"
else