mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-06 18:17:26 +08:00
26 lines
737 B
Bash
26 lines
737 B
Bash
#!/bin/bash
|
|
################################################################################
|
|
## File: pipx-packages.sh
|
|
## Desc: Install tools via pipx
|
|
################################################################################
|
|
|
|
|
|
export PATH="$PATH:/opt/pipx_bin"
|
|
|
|
toolset="$INSTALLER_SCRIPT_FOLDER/toolset.json"
|
|
pipx_packages=$(jq -r ".pipx[]" $toolset)
|
|
|
|
for package in $pipx_packages; do
|
|
echo "Install $package"
|
|
pipx install $package
|
|
done
|
|
|
|
# Run tests to determine that the software installed as expected
|
|
echo "Testing to make sure that script performed as expected, and basic scenarios work"
|
|
for cmd in $pipx_packages; do
|
|
if ! command -v $cmd; then
|
|
echo "$cmd was not installed"
|
|
exit 1
|
|
fi
|
|
done
|