Skip to content

Commit 4b0f3d8

Browse files
committed
INSTALL defaults to --help
1 parent dfa3749 commit 4b0f3d8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

INSTALL.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fi
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}"
@@ -93,6 +93,8 @@ else
9393
EASY_INSTALL="Y"
9494
fi
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.
98100
for arg in "$@"; do

mettalog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ if [ "$IS_SOURCED" -eq "0" ]; then SCRIPT=$(readlink -f "$0"); else SCRIPT=$(rea
1414
export MeTTa=$(readlink -m "$SCRIPT")
1515
export 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

0 commit comments

Comments
 (0)