From e9466ffe3bd3ff0f4aded96ed7276e36fc30cf2e Mon Sep 17 00:00:00 2001 From: Walid Kayhal <3347810+waliid@users.noreply.github.com> Date: Tue, 10 Dec 2024 15:39:25 +0100 Subject: [PATCH] Try another http server --- Scripts/test-streams.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/test-streams.sh b/Scripts/test-streams.sh index b430474..2f05c09 100755 --- a/Scripts/test-streams.sh +++ b/Scripts/test-streams.sh @@ -4,7 +4,7 @@ SCRIPT_NAME=$(basename "$0") SCRIPT_DIR=$(dirname "$0") eval "$(pkgx --shellcode)" -env +python +ffmpeg +packager +env +npx +ffmpeg +packager GENERATED_DIR="/tmp/pillarbox" @@ -17,8 +17,8 @@ function serve_test_streams { kill_test_streams "$dest_dir" - if ! command -v python &> /dev/null; then - echo "python could not be found" + if ! command -v npx &> /dev/null; then + echo "npx could not be found" exit 1 fi @@ -115,7 +115,7 @@ function generate_packaged_streams { } function serve_directory { - python -m http.server 8123 --directory "$1" & + npx http-server "$1" -p 8123 & } function kill_test_streams {