bash: bugfix m2m

This commit is contained in:
Michael Grote 2021-11-09 14:39:55 +01:00
parent 486be8ff24
commit 95d783b39a

View file

@ -18,10 +18,10 @@ function m2m {
echo "m2m = mail2me" echo "m2m = mail2me"
echo "m2m <Pfad zu Datei> <Betreff>" echo "m2m <Pfad zu Datei> <Betreff>"
else else
if [ ! -f "$1" ]; then if [ ! -f "$2" ]; then
echo "Dateipfad fehlt..." echo "Dateipfad fehlt..."
else else
if [ -z "$2" ]; then if [ -z "$1" ]; then
echo "Betreff fehlt..." echo "Betreff fehlt..."
else else
echo "$1" | mail -s "$1" -A "$2" michael.grote@posteo.de echo "$1" | mail -s "$1" -A "$2" michael.grote@posteo.de