aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto>2006-10-11 20:11:59 +0000
committerrhatto <rhatto>2006-10-11 20:11:59 +0000
commit9ddecbe3a4fd4904f3ebdb29dc5474d43531f3e5 (patch)
tree338feca0c11559cc1d26fb51d8db73e143a83ae6
parent08aa27dade4921b71a5613b82e4f85557978ff7c (diff)
downloadfirma-9ddecbe3a4fd4904f3ebdb29dc5474d43531f3e5.tar.gz
firma-9ddecbe3a4fd4904f3ebdb29dc5474d43531f3e5.tar.bz2
admin via email now ignoring empty lines
-rwxr-xr-xfirma6
1 files changed, 4 insertions, 2 deletions
diff --git a/firma b/firma
index 2ea20f2..1b0d7c2 100755
--- a/firma
+++ b/firma
@@ -1820,8 +1820,10 @@ function EmailListAdministration {
# message was sent by an admin
#+then, parse and process admin tasks
echo $DECRYPTED_MESSAGE | while read command; do
- AdminLog "Command> $command"
- ListAdministration $command
+ if [ ! -z "$command" ]; then
+ AdminLog "Command> $command"
+ ListAdministration $command
+ fi
done
# TODO: send encrypted
MESSAGE_BODY="$ADMIN_MESSAGE"