* Moved no editor warning to edit function

* Added message in create_sns_root showing SNS's environment was actually initialized
* Changed flag to create SNS's environment from -w to -i
This commit is contained in:
Jon-William Lewis
2016-01-31 21:30:39 -06:00
parent 77c3398c5f
commit ef1469762b
5 changed files with 29 additions and 17 deletions

View File

@@ -1,5 +1,8 @@
function edit(){
if [ ! -r "$NOTE" ]; then
if [ -z "$EDITOR" ]; then
>&2 echo "Error no editor specified in environment."
exit
elif [ ! -r "$NOTE" ]; then
echo "ERROR: Note cannot be opened for editing."
exit 40;
fi