Improve script/run error handling and return code consistency (#186)

This commit is contained in:
Florian Asche authored and GitHub committed 2026-03-04 01:07:45 +01:00
1 parent 68d2890fdd
commit b800f93f50
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -48,6 +48,7 @@ services:
# Mount source code for development
- ./linux_voice_assistant:/app/linux_voice_assistant
- ./docker-entrypoint.sh:/app/docker-entrypoint.sh
- ./script:/app/script
- ./version.txt:/app/version.txt
- ./version_githash.txt:/app/version_githash.txt
depends_on:
+2 -1
View File
@@ -14,4 +14,5 @@ if _VENV_DIR.exists():
else:
python_exe = "python3"
subprocess.check_call([python_exe, "-m", "linux_voice_assistant"] + sys.argv[1:])
result = subprocess.run([python_exe, "-m", "linux_voice_assistant"] + sys.argv[1:])
sys.exit(result.returncode)