aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/fetchsetup
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2022-07-30 21:59:36 +0200
committerMatěj Cepl <mcepl@cepl.eu>2022-07-30 22:00:53 +0200
commit01219b2c4a43f2a1333b4e992f0ab6dd069f6445 (patch)
tree21dc325c3ed3035caf3ea676337cf3087be229de /contrib/fetchsetup
parent74d986faab60fd1fa202ee973cc345ec7b2639ae (diff)
downloadfetchmail-01219b2c4a43f2a1333b4e992f0ab6dd069f6445.tar.gz
fetchmail-01219b2c4a43f2a1333b4e992f0ab6dd069f6445.tar.bz2
fetchmail-01219b2c4a43f2a1333b4e992f0ab6dd069f6445.zip
Remove bashisms.
Diffstat (limited to 'contrib/fetchsetup')
-rwxr-xr-xcontrib/fetchsetup4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/fetchsetup b/contrib/fetchsetup
index 83223a11..b2cd8dbd 100755
--- a/contrib/fetchsetup
+++ b/contrib/fetchsetup
@@ -64,8 +64,8 @@ echo "protocol $PROTO" >> $HOME/.fetchmailrc
echo 'username "'$USR'"' >> $HOME/.fetchmailrc
echo 'password "'$PASS'"' >> $HOME/.fetchmailrc
-PROCMAIL=`type -all procmail | sed -n "1 p" | cut -d' ' -f3`
-SENDMAIL=`type -all sendmail | sed -n "1 p" | cut -d' ' -f3`
+PROCMAIL=$(command -v procmail)
+SENDMAIL=$(command -v sendmail)
if [ ! "$PROCMAIL" = "" ]; then
echo 'mda "'$PROCMAIL -d %s'"' >> $HOME/.fetchmailrc