2015-05-23 16:15:00 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ $# -eq 1 ]
|
|
|
|
then # si 1 paramètre
|
|
|
|
case $1 in
|
2015-05-23 16:30:21 +00:00
|
|
|
'init') echo """\nalias enigmail="sh $(pwd)/enigmail.sh"\n""";;
|
2015-05-23 16:15:00 +00:00
|
|
|
'config') nano .config ;;
|
|
|
|
'write') nano bucket-file ;;
|
|
|
|
'read') echo "\n======================================="; cat bucket-file; echo "\n=======================================";;
|
|
|
|
*) echo "Erreur";
|
|
|
|
esac;
|
|
|
|
else
|
|
|
|
python source/interface.py;
|
|
|
|
fi;
|