X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fcore%2Flaunch_feisty_meow.sh;h=241e2a0f1be5f39093c916515594bedf33c98bc7;hb=58ef1a07e683cb62296f090e966f97621cecdb7f;hp=631d78e90717f1a5089b25ed6f38c6e72e85354b;hpb=c4834a49e6d157d09d636bcbc80516dd87d62577;p=feisty_meow.git diff --git a/scripts/core/launch_feisty_meow.sh b/scripts/core/launch_feisty_meow.sh index 631d78e9..241e2a0f 100644 --- a/scripts/core/launch_feisty_meow.sh +++ b/scripts/core/launch_feisty_meow.sh @@ -44,19 +44,42 @@ if [ ! -d "$FEISTY_MEOW_APEX" ]; then The feisty meow configuration is damaged somehow. Please change to the directory where it is stored, e.g.: - cd /opt/feistymeow.org/feisty_meow + cd /opt/feistymeow.org/feisty_meow -and execute this command: +and run this command (the whole unwieldy multiple line chunk inside the bars): - export FEISTY_MEOW_APEX=\$(pwd); echo \"export FEISTY_MEOW_APEX=\$FEISTY_MEOW_APEX\" \> \$HOME/\$USER.fm-fix ; exec /bin/bash -c 'source \$HOME/\$USER.fm-fix; /bin/bash \$FEISTY_MEOW_APEX/scripts/core/reconfigure_feisty_meow.sh ; source \$FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh ; /bin/bash -i --norc --noprofile ' -Note that this assumes that the .bashrc file could still need editing to fix -an erroneous FEISTY_MEOW_APEX variable, so we skip it when bash runs. Check -\$HOME/.bashrc to see if a change there will fix the above error. +############## + exec bash -i 3<&- <&4 +EOF +############## + + +This code snippet assumes that the .bashrc file could still need editing to +fix an erroneous FEISTY_MEOW_APEX variable, so we skip it above when bash +runs. Check \$HOME/.bashrc to see if a change there will fix the problem. " +else + # apex is good, so let's make the scripts good too. + if [ ! -d "$FEISTY_MEOW_SCRIPTS" ]; then + export FEISTY_MEOW_SCRIPTS="$FEISTY_MEOW_APEX/scripts" + fi + # check again to test our belief system... + if [ ! -d "$FEISTY_MEOW_SCRIPTS" ]; then + unset NO_REPAIRS_NEEDED + echo -e "The feisty meow scripts cannot be found under the current top:\n FEISTY_MEOW_APEX=$FEISTY_MEOW_APEX" + fi fi +#; /bin/bash -i --norc --noprofile\" > \$HOME/fm-fix +#; exec /bin/bash -i --norc --noprofile -c 'bash \$HOME/fm-fix ; echo hello ; read line' +#--norc --noprofile #; source \$FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh if [ "$NO_REPAIRS_NEEDED" == "true" ]; then @@ -188,5 +211,15 @@ if [ "$NO_REPAIRS_NEEDED" == "true" ]; then fi # no error occurred. + if [ ! -z "$FEISTY_MEOW_SHOW_LAUNCH_GREETING" ]; then + echo + echo + echo "welcome to the feisty meow zone of peace, one of many refuges in the uncountably" + echo "infinite multiverses that are hypothetically possible." + echo + echo + unset FEISTY_MEOW_SHOW_LAUNCH_GREETING + fi + fi # "$NO_REPAIRS_NEEDED" was == "true"