X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Fis_feisty_up.sh;fp=scripts%2Fcore%2Fis_feisty_up.sh;h=1f4b2d8ff2a1997bebe35c60a0b7a3b996db8f20;hb=8904b69b65943f04f5aeca6e10c44fd7cf78303c;hp=0000000000000000000000000000000000000000;hpb=c47393ee17878881ca2947bc21fcf6c4c021d4cd;p=feisty_meow.git diff --git a/scripts/core/is_feisty_up.sh b/scripts/core/is_feisty_up.sh new file mode 100644 index 00000000..1f4b2d8f --- /dev/null +++ b/scripts/core/is_feisty_up.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +# tells the caller if the feisty_meow scripts have been initialized +# successfully or not, as far as we can tell. +# any parameter passed will cause us to go into debugging mode. + +do_debug="$1"; shift + +if [ \ + -z "$FEISTY_MEOW_APEX" -o \ + -z "$CORE_VARIABLES_LOADED" -o \ + -z "$FEISTY_MEOW_LOADING_DOCK" \ + ]; then + if [ ! -z "$do_debug" ]; then + echo "Bailing out because a crucial Feisty Meow initialization variable is missing." + fi + exit 1 +fi + +# we got through the minimal gauntlet, so claim we're initialized. +if [ ! -z "$do_debug" ]; then + echo "Looking good for every Feisty Meow initialization variable that we check." +fi +exit 0 + +