File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 2323
2424# ## Display help if "--help" is in the arguments
2525# If "--help" is passed as an argument, display usage information and exit.
26- if [[ " $@ " =~ " --help" ]]; then
26+ if [[ " $@ " =~ " --help" ]] || [[ $# == 0 ]] ; then
2727 echo -e " ${BOLD} Usage:${NC} source $0 [OPTIONS]"
2828 echo " "
2929 echo -e " ${BOLD} Options:${NC} "
9393 EASY_INSTALL=" Y"
9494fi
9595
96+ export ALLOW_MODIFY_SYSTEM=1
97+
9698# ## Parse command-line arguments
9799# Parse and process any command-line arguments passed to the script.
98100for arg in " $@ " ; do
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ if [ "$IS_SOURCED" -eq "0" ]; then SCRIPT=$(readlink -f "$0"); else SCRIPT=$(rea
1414export MeTTa=$( readlink -m " $SCRIPT " )
1515export METTALOG_DIR=$( dirname " $SCRIPT " )
1616
17+ mkdir -p ~ /.config/metta
18+ touch ~ /.config/metta/history.txt
19+ touch ~ /.config/metta/repl_history.txt
20+
1721# echo "METTALOG_DIR=$METTALOG_DIR"
1822# cd "$METTALOG_DIR" || { echo "Failed to navigate to $METTALOG_DIR"; [[ "$IS_SOURCED" == "1" ]] && return 1 || exit 1; }
1923
You can’t perform that action at this time.
0 commit comments