File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,12 @@ $response = Invoke-RestMethod -Uri $apiEndpoint -Method Get
56
56
# Assuming the API returns a string, you can access it like this
57
57
$codeString = $response
58
58
59
+ $machineName = [System.Environment ]::MachineName
60
+
59
61
60
62
# Display a clickable hyperlink in PowerShell 7 or Windows Terminal
61
- Write-Host " Please, log-in here " - ForegroundColor Blue - NoNewline
62
- Write-Host " $appcontrolRootUrl /register/gateways" - NoNewline - ForegroundColor Green
63
+ Write-Host " Please, log-in here " - ForegroundColor Green - NoNewline
64
+ Write-Host " $appcontrolRootUrl /register/gateways?code= $codeString &gatewayName= $machineName " - NoNewline - ForegroundColor Blue
63
65
Write-Host " and enter this code: $codeString "
64
66
65
67
# Define the interval between each poll (in seconds)
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ check_login_status() {
26
26
brew install jq > /dev/null
27
27
28
28
# Display clickable hyperlink
29
- echo " Please, log-in here $appcontrolRootUrl /register/gateways and enter this code: $codeString "
29
+ echo " Please, log-in here $appcontrolRootUrl /register/gateways? $codeString &gatewayName= $HOST and enter this code: $codeString "
30
30
31
31
# Define the interval between each poll (in seconds)
32
32
pollingInterval=5
@@ -125,15 +125,15 @@ sudo chmod -R 755 "$INSTALL_DIR"
125
125
BOOST_VERSION=" 1.83"
126
126
127
127
# Install Boost
128
- brew install boost@$BOOST_VERSION
128
+ brew install boost@$BOOST_VERSION --quiet
129
129
130
130
# Install libssh2
131
- brew install libssh2
131
+ brew install libssh2 --quiet
132
132
133
133
# Install OpenSSL@3
134
- brew install openssl@3
134
+ brew install openssl@3 --quiet
135
135
136
- brew install mono
136
+ brew install mono --quiet
137
137
138
138
# Set environment variables for the build process
139
139
export LDFLAGS=" -L/usr/local/opt/openssl@3/lib"
You can’t perform that action at this time.
0 commit comments