added a safety net in case feisty_meow not present
authorChris Koeritz <cak0l@virginia.edu>
Thu, 14 May 2020 14:29:39 +0000 (10:29 -0400)
committerChris Koeritz <cak0l@virginia.edu>
Thu, 14 May 2020 14:29:39 +0000 (10:29 -0400)
infobase/feisty_inits/dot.bashrc-normal-user

index f64bbcfcf3d5cd178eff7d7468d06f9ab9239e26..fde023212e7de61709a0d8c90674f7a99cb34296 100644 (file)
@@ -26,7 +26,11 @@ export FEISTY_MEOW_APEX="/opt/feistymeow.org/feisty_meow"
 
 # sets up the feisty_meow scripts if appropriate for the environment.
 if [ "${TERM}" != "dumb" -a -z "$PBS_ENVIRONMENT" ]; then
-  source "$FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh"
+  if [ -d "$FEISTY_MEOW_APEX" ]; then
+    source "$FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh"
+  else
+    echo "feisty meow codebase is not available at: $FEISTY_MEOW_APEX"
+  fi
 fi
 
 # if not commented out, then feisty meow will run all the unit tests during builds.