Skip to content

Commit

Permalink
Add download check
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankk2308 committed Aug 13, 2018
1 parent 8f061ec commit c39d25c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion purge-wrangler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,9 @@ patch_plist() {

# Install AMDLegacySupport.kext
run_legacy_kext_installer() {
echo -e "${BOLD}Downloading AMDLegacySupport...${NORMAL}"
echo -e "${BOLD}Downloading AMDLegacySupport...${NORMAL}"
curl -L -s -o "${AMD_LEGACY_ZIP}" "${AMD_LEGACY_DL}"
[[ ! -e "${AMD_LEGACY_ZIP}" ]] && echo -e "Could not download.\n\n${BOLD}Continuing...${NORMAL}" && return
echo -e "Download complete.\n${BOLD}Installing...${NORMAL}"
[[ -d "${AMD_LEGACY_KEXT}" ]] && rm -r "${AMD_LEGACY_KEXT}"
unzip -d "${TP_EXT_PATH}" "${AMD_LEGACY_ZIP}" 1>/dev/null 2>&1
Expand Down

0 comments on commit c39d25c

Please sign in to comment.