Skip to content

Commit 4a87efb

Browse files
authored
Fix sh spacing (#2192)
1 parent 8c0f170 commit 4a87efb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/registry/create/_index.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -673,19 +673,19 @@ Make sure to set up a Python virtual environment in the directory your module is
673673
2. Add a shell script that creates a new virtual environment, installs the dependencies listed in `requirements.txt`, and runs the module entry point file `main.py`:
674674

675675
```sh { class="command-line" data-prompt="$"}
676-
#!/bin/sh
677-
cd `dirname $0`
676+
#!/bin/sh
677+
cd `dirname $0`
678678

679-
# Create a virtual environment to run our code
680-
VENV_NAME="venv"
681-
PYTHON="$VENV_NAME/bin/python"
679+
# Create a virtual environment to run our code
680+
VENV_NAME="venv"
681+
PYTHON="$VENV_NAME/bin/python"
682682

683-
python3 -m venv $VENV_NAME
684-
$PYTHON -m pip install -r requirements.txt -U # remove -U if viam-sdk should not be upgraded whenever possible
683+
python3 -m venv $VENV_NAME
684+
$PYTHON -m pip install -r requirements.txt -U # remove -U if viam-sdk should not be upgraded whenever possible
685685

686-
# Be sure to use `exec` so that termination signals reach the python process,
687-
# or handle forwarding termination signals manually
688-
exec $PYTHON <your-src-dir-if-inside>/main.py $@
686+
# Be sure to use `exec` so that termination signals reach the python process,
687+
# or handle forwarding termination signals manually
688+
exec $PYTHON <your-src-dir-if-inside>/main.py $@
689689
```
690690

691691
To make your shell script executable, run the following command in your terminal:

0 commit comments

Comments
 (0)