diff --git a/activated.py b/activated.py index 74c8902b73..59c1710527 100755 --- a/activated.py +++ b/activated.py @@ -18,7 +18,7 @@ def main(*args: str) -> int: command = ["powershell", os.fspath(here.joinpath(script)), *args] else: script = "activated.sh" - command = [os.fspath(here.joinpath(script)), *args] + command = ["sh", os.fspath(here.joinpath(script)), *args] completed_process = subprocess.run(command) diff --git a/activated.sh b/activated.sh index 8c01566012..283f61325d 100755 --- a/activated.sh +++ b/activated.sh @@ -1,9 +1,9 @@ -#!/bin/bash +#!/bin/sh set -o errexit SCRIPT_DIRECTORY=$(cd -- "$(dirname -- "$0")"; pwd) # shellcheck disable=SC1091 -source "${SCRIPT_DIRECTORY}/venv/bin/activate" +. "${SCRIPT_DIRECTORY}/venv/bin/activate" "$@"