bash: bugfix m2m
This commit is contained in:
parent
486be8ff24
commit
95d783b39a
1 changed files with 2 additions and 2 deletions
|
@ -18,10 +18,10 @@ function m2m {
|
|||
echo "m2m = mail2me"
|
||||
echo "m2m <Pfad zu Datei> <Betreff>"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue