Add run.sh
This commit is contained in:
parent
fd419012c1
commit
d063554519
1 changed files with 19 additions and 0 deletions
19
run.sh
Normal file
19
run.sh
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Activate the virtual environment
|
||||
source /home/youruserhere/meshtastic_forceast/venv/bin/activate
|
||||
|
||||
# Check if the activation was successful
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Failed to activate virtual environment."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run the Python script
|
||||
python /home/youruserhere/meshtastic_forceast/main.py
|
||||
|
||||
# Deactivate the virtual environment when done
|
||||
deactivate
|
||||
|
||||
# Optionally, you can add a message after the script finishes
|
||||
echo "Python script execution finished."
|
Loading…
Reference in a new issue