Skip to content

Commit

Permalink
Fix edge redirect, closes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
YummyBacon5 authored Nov 14, 2024
1 parent ebc9b89 commit d090c67
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ function Reload-Env {

#---------------------------------------------------------------------------------------------------------------------------------------------

# Go into the config directory
mkdir likes-gay-config
cd likes-gay-config

# Download user config file
try {
Invoke-WebRequest "https://raw.githubusercontent.com/likes-gay/win-config/main/configs/$Env:UserName.json" -outfile "config.json"
Expand Down Expand Up @@ -114,7 +118,10 @@ if ($configFile."Default-browser-chrome") {
if ($configFile."Setup-edge-redirect") {
Invoke-WebRequest "https://github.com/rcmaehl/MSEdgeRedirect/releases/latest/download/MSEdgeRedirect.exe" -OutFile .\MSEdgeRedirect.exe
Invoke-WebRequest "https://raw.githubusercontent.com/likes-gay/win-config/main/edge_redirect.ini" -OutFile .\edge_redirect.ini
Start-Process "MSEdgeRedirect.exe" -ArgumentList "/silentinstall",".\edge_redirect.ini" -PassThru

$process = Start-Process -FilePath ".\MSEdgeRedirect.exe" -ArgumentList "/silentinstall",".\edge_redirect.ini" -PassThru
$process.WaitForExit()

Remove-Item -Path ".\edge_redirect.ini"
Remove-Item -Path ".\MSEdgeRedirect.exe"
}
Expand Down Expand Up @@ -320,7 +327,6 @@ if ($configFile."Install-Bitwarden") {
if ($configFile."Funny-joe-biden") {
$images = (Invoke-WebRequest "https://raw.githubusercontent.com/likes-gay/win-config/main/photos.txt").Content.Split([Environment]::NewLine)


# Create folder to store downloaded images in to prevent clutter.
$downloadPath = "$env:USERPROFILE\Downloads\likes-gay-images"
if (!(test-path $downloadPath)) {
Expand Down

0 comments on commit d090c67

Please sign in to comment.