Skip to content

Commit

Permalink
Add error msg for install failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankk2308 committed Jun 25, 2018
1 parent 17f5a0d commit 62cdeed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions purge-wrangler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ run_webdriver_installer() {
echo "Information retrieved.\n${BOLD}Downloading Drivers (${DRIVER_VER})...${NORMAL}"
curl --connect-timeout 15 -# -o "${INSTALLER_PKG}" "${DRIVER_DL}"
echo "Download complete.\n${BOLD}Installing...${NORMAL}"
installer -target "/" -pkg "${INSTALLER_PKG}" 1>/dev/null
echo "Installation complete.\n\n${BOLD}Continuing patch...${NORMAL}"
INSTALLER_ERR="$(installer -target "/" -pkg "${INSTALLER_PKG}" 2>&1 1>/dev/null)"
[[ -z "${INSTALLER_ERR}" ]] && echo "Installation complete.\n\n${BOLD}Continuing patch...${NORMAL}" || echo "Installation failed."
rm -r "${INSTALLER_PKG}"
rm "${WEBDRIVER_PLIST}"
}
Expand Down

0 comments on commit 62cdeed

Please sign in to comment.