X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fcore%2Fvariables.sh;h=976c7898cbfd20ee14ffda97e0ee4443e9da05e9;hb=76ed6415be63bf7f925c35a49bc642fcf5820e2e;hp=b5ea3456311933b1546fad677f7fca4a623aa9c1;hpb=f6066f2fa1be664694756f980e25f3d0a4b8228b;p=feisty_meow.git diff --git a/scripts/core/variables.sh b/scripts/core/variables.sh index b5ea3456..976c7898 100644 --- a/scripts/core/variables.sh +++ b/scripts/core/variables.sh @@ -17,17 +17,16 @@ # this function always exports the variables it defines. function define_yeti_variable() { -# if variable exists already, save old value for restore, + #hmmm: simple implem just sets it up and exports the variable. + # i.e., this method always exports. + export "${@}" + +#hmmm: eventual approach-- if variable exists already, save old value for restore, # otherwise save null value for restore, # have to handle unsetting if there was no prior value of one # we newly defined. # add variable name to a list of feisty defined variables. -#hmmm: first implem just sets it up and exports the variable. -# i.e., this method always exports. -export "${@}" - - return 0 } @@ -205,6 +204,18 @@ if [ -z "$CORE_VARIABLES_LOADED" ]; then # define_yeti_variable REPOSITORY_DIR+="muppets configs" # see the customize/fred folder for a live example. define_yeti_variable REPOSITORY_LIST="$FEISTY_MEOW_APEX " + + # add in any active projects to the repository list. + if [ -d "$HOME/active" ]; then + REPOSITORY_LIST+="$(find "$HOME/active" -maxdepth 1 -mindepth 1 -type d) " + 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. + REPOSITORY_LIST+="$(find "$HOME/apps" -maxdepth 2 -mindepth 2 -iname "avenger5" -type d) " + fi # the archive collections list is a set of directories that are major # repositories of data which can be synched to backup drives.