Skip to content

Commit

Permalink
Update autoexec.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
crhultay authored Nov 25, 2024
1 parent 98bc727 commit 8877b1d
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions autoexec.sh
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@
#!/bin/bash

# Setup Node Environment
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm use 18

# Setup Python Environment
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv local 3.10
# Activate Mise
eval "$(~/.local/bin/mise activate bash)"

# Start BBS
/home/egonis/enigma-bbs/main.js
result=$?

# Determine whether a Startup Crash Occurred
if [ $result -eq 0 ]; then
echo "$result"
else
echo "FAIL: ENiGMA½ exited with $result"
# if [ $result -eq 0 ]; then
# # TODO: Notify via SMS / Email of Startup Failure
# fi

# TODO: Notify via SMS / Email of Startup Failure
fi
echo "ENiGMA½ exited with $result"
exit $result

0 comments on commit 8877b1d

Please sign in to comment.