Update autoexec.sh
This commit is contained in:
committed by
GitHub
parent
98bc72700b
commit
8877b1d3af
24
autoexec.sh
24
autoexec.sh
@@ -1,26 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Setup Node Environment
|
# Activate Mise
|
||||||
export NVM_DIR="$HOME/.nvm"
|
eval "$(~/.local/bin/mise activate bash)"
|
||||||
[ -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
|
|
||||||
|
|
||||||
# Start BBS
|
# Start BBS
|
||||||
/home/egonis/enigma-bbs/main.js
|
/home/egonis/enigma-bbs/main.js
|
||||||
result=$?
|
result=$?
|
||||||
|
|
||||||
# Determine whether a Startup Crash Occurred
|
# Determine whether a Startup Crash Occurred
|
||||||
if [ $result -eq 0 ]; then
|
# if [ $result -eq 0 ]; then
|
||||||
echo "$result"
|
# # TODO: Notify via SMS / Email of Startup Failure
|
||||||
else
|
# fi
|
||||||
echo "FAIL: ENiGMA½ exited with $result"
|
|
||||||
|
|
||||||
# TODO: Notify via SMS / Email of Startup Failure
|
echo "ENiGMA½ exited with $result"
|
||||||
fi
|
exit $result
|
||||||
|
|||||||
Reference in New Issue
Block a user