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