From 95d783b39a9a87c2b9c7004ef6b11906210fa256 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 9 Nov 2021 14:39:55 +0100 Subject: [PATCH] bash: bugfix m2m --- .bash_functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bash_functions b/.bash_functions index c4de145..20c57cc 100644 --- a/.bash_functions +++ b/.bash_functions @@ -18,10 +18,10 @@ function m2m { echo "m2m = mail2me" echo "m2m " else - if [ ! -f "$1" ]; then + if [ ! -f "$2" ]; then echo "Dateipfad fehlt..." else - if [ -z "$2" ]; then + if [ -z "$1" ]; then echo "Betreff fehlt..." else echo "$1" | mail -s "$1" -A "$2" michael.grote@posteo.de