mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-13 02:25:38 +00:00
Fix common spelling mistakes (#4956)
* add codespell * first fixes * doc fixes * fix docstrings and comments * functional changes * docstrings again * and docs again * rename args * add ignore * use pre-commit for filtering instead * ups * fix typo in filter
This commit is contained in:
@ -55,7 +55,7 @@ root_command() {
|
||||
# Check if os and version is supported
|
||||
get_distribution
|
||||
echo "### Detected distribution: $OS $VER"
|
||||
SUPPORTED=true # is thos OS supported?
|
||||
SUPPORTED=true # is this OS supported?
|
||||
NEEDS_LIBSSL1_1=false # does this OS need libssl1.1?
|
||||
|
||||
DIST_OS=${OS,,}
|
||||
@ -118,7 +118,7 @@ root_command() {
|
||||
echo "### Adding package source"
|
||||
do_call "sudo wget -O /etc/apt/sources.list.d/inventree.list https://dl.packager.io/srv/$publisher/InvenTree/$source_url/installer/$DIST_OS/$DIST_VER.repo"
|
||||
|
||||
echo "### Updateing package lists"
|
||||
echo "### Updating package lists"
|
||||
do_call "sudo apt-get update"
|
||||
|
||||
# Set up environment for install
|
||||
|
@ -45,7 +45,7 @@ echo "### Installer for InvenTree - source: $publisher/$source_url"
|
||||
# Check if os and version is supported
|
||||
get_distribution
|
||||
echo "### Detected distribution: $OS $VER"
|
||||
SUPPORTED=true # is thos OS supported?
|
||||
SUPPORTED=true # is this OS supported?
|
||||
NEEDS_LIBSSL1_1=false # does this OS need libssl1.1?
|
||||
|
||||
DIST_OS=${OS,,}
|
||||
@ -108,7 +108,7 @@ wget -qO- https://dl.packager.io/srv/$publisher/InvenTree/key | sudo apt-key add
|
||||
echo "### Adding package source"
|
||||
do_call "sudo wget -O /etc/apt/sources.list.d/inventree.list https://dl.packager.io/srv/$publisher/InvenTree/$source_url/installer/$DIST_OS/$DIST_VER.repo"
|
||||
|
||||
echo "### Updateing package lists"
|
||||
echo "### Updating package lists"
|
||||
do_call "sudo apt-get update"
|
||||
|
||||
# Set up environment for install
|
||||
|
@ -155,11 +155,11 @@ function detect_envs() {
|
||||
|
||||
function create_initscripts() {
|
||||
|
||||
# Make sure python env exsists
|
||||
# Make sure python env exists
|
||||
if test -f "${APP_HOME}/env"; then
|
||||
echo "# python enviroment already present - skipping"
|
||||
echo "# python environment already present - skipping"
|
||||
else
|
||||
echo "# Setting up python enviroment"
|
||||
echo "# Setting up python environment"
|
||||
sudo -u ${APP_USER} --preserve-env=$SETUP_ENVS bash -c "cd ${APP_HOME} && ${SETUP_PYTHON} -m venv env"
|
||||
sudo -u ${APP_USER} --preserve-env=$SETUP_ENVS bash -c "cd ${APP_HOME} && env/bin/pip install invoke wheel"
|
||||
|
||||
|
Reference in New Issue
Block a user