formatted tools
This commit is contained in:
parent
923adda120
commit
eab36b1dca
1 changed files with 3 additions and 2 deletions
5
home/private_bin/executable_tools
Executable file → Normal file
5
home/private_bin/executable_tools
Executable file → Normal file
|
@ -45,7 +45,7 @@ eget_tool() {
|
||||||
|
|
||||||
if [[ $download_only ]]; then
|
if [[ $download_only ]]; then
|
||||||
echo -n ' --> '
|
echo -n ' --> '
|
||||||
echo -n 'running post-download script '
|
echo -n 'running post-download script'
|
||||||
post_download_install $tool
|
post_download_install $tool
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -100,6 +100,8 @@ list() {
|
||||||
download() {
|
download() {
|
||||||
if ! [ -z "$1" ]; then
|
if ! [ -z "$1" ]; then
|
||||||
tool=$1
|
tool=$1
|
||||||
|
|
||||||
|
echo "installing $tool"
|
||||||
info=$(key=$tool yq e 'explode(.) | .[env(key)]' $YAMLDOC)
|
info=$(key=$tool yq e 'explode(.) | .[env(key)]' $YAMLDOC)
|
||||||
if [[ $info == "null" ]]; then
|
if [[ $info == "null" ]]; then
|
||||||
echo "$tool not found in $YAMLDOC"
|
echo "$tool not found in $YAMLDOC"
|
||||||
|
@ -175,7 +177,6 @@ if [ -z "$args" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
echo "Downloading binaries to ${GREEN}$BIN_DIR${NORMAL}"
|
echo "Downloading binaries to ${GREEN}$BIN_DIR${NORMAL}"
|
||||||
echo "installing......"
|
|
||||||
deps_check
|
deps_check
|
||||||
for tool in "$args"; do
|
for tool in "$args"; do
|
||||||
download $tool
|
download $tool
|
||||||
|
|
Loading…
Reference in a new issue