Skip to content

Commit ab04327

Browse files
Fixes beta install scripts
1 parent 6f69955 commit ab04327

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

scripts/setup-beta.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ if (-not $IsLinux)
1212
Write-Host ""
1313
Write-Host "This script installs Dev Proxy on your machine. It runs the following steps:"
1414
Write-Host ""
15-
Write-Host "1. Create the 'devproxy' directory in the current working folder"
15+
Write-Host "1. Create the 'devproxy-beta' directory in the current working folder"
1616
Write-Host "2. Download the latest beta Dev Proxy release"
17-
Write-Host "3. Unzip the release in the devproxy directory"
18-
Write-Host "4. Configure devproxy and its files as executable (Linux and macOS only)"
17+
Write-Host "3. Unzip the release in the devproxy-beta directory"
18+
Write-Host "4. Configure Dev Proxy and its files as executable (Linux and macOS only)"
1919
Write-Host "5. Configure new version notifications for the beta channel"
20-
Write-Host "6. Add the devproxy directory to your PATH environment variable in `$PROFILE.CurrentUserAllHosts"
20+
Write-Host "6. Add the devproxy-beta directory to your PATH environment variable in `$PROFILE.CurrentUserAllHosts"
2121
Write-Host ""
2222
Write-Host "Continue (y/n)? " -NoNewline
2323
$response = [System.Console]::ReadKey().KeyChar
@@ -29,8 +29,8 @@ if ($response -notin @('y', 'Y')) {
2929

3030
Write-Host "`n"
3131

32-
New-Item -ItemType Directory -Force -Path .\devproxy -ErrorAction Stop | Out-Null
33-
Set-Location .\devproxy | Out-Null
32+
New-Item -ItemType Directory -Force -Path .\devproxy-beta -ErrorAction Stop | Out-Null
33+
Set-Location .\devproxy-beta | Out-Null
3434

3535
# Get the full path of the current directory
3636
$full_path = Resolve-Path .
@@ -75,7 +75,7 @@ if (!(Test-Path $PROFILE.CurrentUserAllHosts)) {
7575
}
7676

7777
if (!(Select-String -Path $PROFILE.CurrentUserAllHosts -Pattern "devproxy")) {
78-
Write-Host "Adding devproxy to `$PROFILE.CurrentUserAllHosts..."
78+
Write-Host "Adding Dev Proxy to `$PROFILE.CurrentUserAllHosts..."
7979
Add-Content -Path $PROFILE.CurrentUserAllHosts -Value "$([Environment]::NewLine)`$env:PATH += `"$([IO.Path]::PathSeparator)$full_path`""
8080
}
8181

scripts/setup-beta.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ fi
1212
echo ""
1313
echo "This script installs Dev Proxy on your machine. It runs the following steps:"
1414
echo ""
15-
echo "1. Create the 'devproxy' directory in the current working folder"
15+
echo "1. Create the 'devproxy-beta' directory in the current working folder"
1616
echo "2. Download the latest beta Dev Proxy release"
17-
echo "3. Unzip the release in the devproxy directory"
18-
echo "4. Configure devproxy and its files as executable"
17+
echo "3. Unzip the release in the devproxy-beta directory"
18+
echo "4. Configure Dev Proxy and its files as executable"
1919
echo "5. Configure new version notifications for the beta channel"
20-
echo "6. Add the devproxy directory to your PATH environment variable in your shell profile"
20+
echo "6. Add the devproxy-beta directory to your PATH environment variable in your shell profile"
2121
echo ""
2222

2323
if [ -t 0 ]; then
@@ -37,8 +37,8 @@ if [ -t 0 ]; then
3737
echo -e "\n"
3838
fi
3939

40-
mkdir devproxy
41-
cd devproxy
40+
mkdir devproxy-beta
41+
cd devproxy-beta
4242
full_path=$(pwd)
4343

4444
set -e # Terminates program immediately if any command below exits with a non-zero exit status
@@ -68,7 +68,7 @@ fi
6868

6969
unzip -o ./devproxy.zip -d ./
7070
rm ./devproxy.zip
71-
echo "Configuring devproxy and its files as executable..."
71+
echo "Configuring Dev Proxy and its files as executable..."
7272
chmod +x ./devproxy-beta ./libe_sqlite3.so
7373
echo "Configuring new version notifications for the beta channel..."
7474
sed -i 's/"newVersionNotification": "stable"/"newVersionNotification": "beta"/g' ./devproxyrc.json

0 commit comments

Comments
 (0)