update: recommend 'brew untap` if tap doesn't exist.
We removed a few old, deprecated repos recently and people with them still tapped who get confused at the `brew update` error message.
This commit is contained in:
		
							parent
							
								
									f3716fe2d8
								
							
						
					
					
						commit
						e7ce5dddb7
					
				@ -510,7 +510,13 @@ EOS
 | 
			
		||||
        if ! git fetch --tags --force "${QUIET_ARGS[@]}" origin \
 | 
			
		||||
          "refs/heads/$UPSTREAM_BRANCH_DIR:refs/remotes/origin/$UPSTREAM_BRANCH_DIR"
 | 
			
		||||
        then
 | 
			
		||||
          echo "Fetching $DIR failed!" >>"$update_failed_file"
 | 
			
		||||
          if [[ "$UPSTREAM_SHA_HTTP_CODE" = "404" ]]
 | 
			
		||||
          then
 | 
			
		||||
            TAP="${DIR#$HOMEBREW_LIBRARY/Taps/}"
 | 
			
		||||
            echo "$TAP does not exist! Run 'brew untap $TAP'" >>"$update_failed_file"
 | 
			
		||||
          else
 | 
			
		||||
            echo "Fetching $DIR failed!" >>"$update_failed_file"
 | 
			
		||||
          fi
 | 
			
		||||
        fi
 | 
			
		||||
      fi
 | 
			
		||||
    ) &
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user