Skip to content

Commit

Permalink
Bugfixes: hspm and docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Saporetti Junior committed Dec 29, 2023
1 parent 8c4e058 commit be2a0e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 1 addition & 4 deletions bin/apps/bash/app-commons.bash
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ function quit() {
local exit_code=${1:-0}

shift
if [[ ${exit_code} -ne 0 && ${#} -ge 1 ]]; then
echo -en "${RED}error: ${APP_NAME} => " 1>&2
fi
[[ ${#} -eq 0 ]] && echo -e "${NC}"
[[ ${#} -ge 1 ]] && echo -e "${*} ${NC}" 1>&2
[[ ${#} -ge 1 ]] && __hhs_errcho "${APP_NAME} => ${*} ${NC}" 1>&2

exit "${exit_code}"
}
Expand Down
4 changes: 2 additions & 2 deletions bin/apps/bash/hhs-app/plugins/hspm/hspm.bash
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function install_recipe() {
echo -e "${GREEN}Installation successful => \"${package}\" ${NC}"
add_breadcrumb "${package}"
else
quit 1 "${PLUGIN_NAME}: Failed to install \"${package}\" !"
quit 1 "${PLUGIN_NAME}: Failed to install \"${package}\"! Please type __hhs logs hspm to find out details\n"
fi
}

Expand Down Expand Up @@ -276,7 +276,7 @@ function uninstall_recipe() {
echo -e "${GREEN}Uninstallation successful => \"${package}\" ${NC}"
del_breadcrumb "${package}"
else
quit 1 "${PLUGIN_NAME}: Failed to uninstall \"${package}\" !"
quit 1 "${PLUGIN_NAME}: Failed to uninstall \"${package}\" ! Please type __hhs logs hspm to find out details\n"
fi
}

Expand Down
2 changes: 2 additions & 0 deletions install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,8 @@ Usage: $APP_NAME [OPTIONS] <args>
else
echo -e "${BLUE}HomeBrew is already installed -> $(brew --prefix) ${NC}"
fi
else
echo -e "${YELLOW}Skipping brew installation (not supported OS): \"${OS_TYPE}\""
fi
}

Expand Down

0 comments on commit be2a0e1

Please sign in to comment.