Shell script cleanups
This commit is contained in:
parent
892096a3b3
commit
bd79ead2e6
|
@ -120,10 +120,11 @@ sudo apt install build-essentials
|
||||||
|
|
||||||
log_message "Installing or updating pip"
|
log_message "Installing or updating pip"
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
|
pip_url=https://bootstrap.pypa.io/get-pip.py
|
||||||
if exists wget; then
|
if exists wget; then
|
||||||
wget --output-document=get-pip.py https://bootstrap.pypa.io/get-pip.py
|
wget --output-document=get-pip.py $pip_url
|
||||||
else
|
else
|
||||||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
curl $pip_url -o get-pip.py
|
||||||
fi
|
fi
|
||||||
${python_cmd} get-pip.py
|
${python_cmd} get-pip.py
|
||||||
rm get-pip.py
|
rm get-pip.py
|
||||||
|
@ -175,11 +176,11 @@ log_message "Generating certificate"
|
||||||
# Update node
|
# Update node
|
||||||
if ! exists npm; then
|
if ! exists npm; then
|
||||||
log_message "Installing nodejs"
|
log_message "Installing nodejs"
|
||||||
# shellcheck disable=SC2086
|
node_src=https://deb.nodesource.com/setup_12.x
|
||||||
if exists curl; then
|
if exists curl; then
|
||||||
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
|
curl -sL $node_src | sudo -E bash -
|
||||||
else
|
else
|
||||||
wget -q -O - https://deb.nodesource.com/setup_12.x | sudo -E bash -
|
wget -q -O - $node_src | sudo -E bash -
|
||||||
fi
|
fi
|
||||||
sudo apt-get install -y nodejs
|
sudo apt-get install -y nodejs
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -109,9 +109,6 @@ function Deploy-Windows([String] $monkey_home = (Get-Item -Path ".\").FullName,
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
"Installing pywin32"
|
|
||||||
python -m pip install --user pywin32
|
|
||||||
|
|
||||||
"Installing python packages for island"
|
"Installing python packages for island"
|
||||||
$islandRequirements = Join-Path -Path $monkey_home -ChildPath $MONKEY_ISLAND_DIR | Join-Path -ChildPath "\requirements.txt" -ErrorAction Stop
|
$islandRequirements = Join-Path -Path $monkey_home -ChildPath $MONKEY_ISLAND_DIR | Join-Path -ChildPath "\requirements.txt" -ErrorAction Stop
|
||||||
& python -m pip install --user -r $islandRequirements
|
& python -m pip install --user -r $islandRequirements
|
||||||
|
|
Loading…
Reference in New Issue