X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Fvariables.sh;h=fa4bdca9e4ce85f3b769ca712ee4386e0165fec4;hb=42be4413b102e6b6d99e6210d15ca3c30206c642;hp=0628a4f1d017f197bfcc79bb579f652c7c030fb3;hpb=adde1d6ea14a4e3b833d20ce1d26468797edf5b5;p=feisty_meow.git diff --git a/scripts/core/variables.sh b/scripts/core/variables.sh index 0628a4f1..fa4bdca9 100644 --- a/scripts/core/variables.sh +++ b/scripts/core/variables.sh @@ -220,9 +220,7 @@ define_yeti_variable DEFAULT_FEISTYMEOW_ORG_DIR=/opt/feistymeow.org fi # add in any site avenger applications that are in the apps folder. if [ -d "$HOME/apps" ]; then - # first, simple projects. - REPOSITORY_LIST+="$(find "$HOME/apps" -iname "avenger5" -type d) " - # then, site avenger specific projects. + # back up all the apps. REPOSITORY_LIST+="$(find "$HOME/apps" -maxdepth 2 -mindepth 2 -iname "avenger5" -type d) " fi @@ -311,8 +309,11 @@ done # a late breaking action is to set the editor, if we can. # we will fallback to whatever we can find on the host. export EDITOR -if [ -z "$EDITOR" ]; then - EDITOR="$(which bluefish)" +if [ ! -z "$DISPLAY" ]; then + # only try to add bluefish, a gui editor, if there is an X display for it. + if [ -z "$EDITOR" ]; then + EDITOR="$(which bluefish)" + fi fi if [ -z "$EDITOR" ]; then EDITOR="$(which gvim)"