You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a34c7f5
Browse filesBrowse the repository at this point in the historyBrowse files
Improve install scripts: path, error, and robustness fixes
Updated install.ps1 to use Join-Path, improved error handling, and clarified output messages. Enhanced install.sh by fixing variable quoting, mktemp usage, and VECTRACTL_INSTALL_DIR comparison. Added checks for empty GitHub API responses and improved binary installation and version checks.
#31
Copy file name to clipboardExpand all lines: install/install.sh
+14-10Lines changed: 14 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -26,10 +26,10 @@ getSystemInfo() {
26
26
x86_64) ARCH="x64";;
27
27
esac
28
28
29
-
OS=$(echo `uname`|tr '[:upper:]''[:lower:]')
29
+
OS=$(uname|tr '[:upper:]''[:lower:]')
30
30
31
31
# Most linux distro needs root permission to copy the file to /usr/local/bin
32
-
if [[ "$OS"=="linux"||"$OS"=="darwin" ]] && [[ "VECTRACTL_INSTALL_DIR"=="/usr/local/bin" ]];then
32
+
if [[ "$OS"=="linux"||"$OS"=="darwin" ]] && [[ "$VECTRACTL_INSTALL_DIR"=="/usr/local/bin" ]];then
33
33
USE_SUDO="true"
34
34
fi
35
35
}
@@ -47,7 +47,7 @@ verifySupported() {
47
47
done
48
48
49
49
if [[ "$current_osarch"=="darwin-arm64" ]];then
50
-
if isReleaseAvailable $releaseTag;then
50
+
if isReleaseAvailable "$releaseTag";then
51
51
return
52
52
else
53
53
echo"The darwin_arm64 arch has no native binary for this version of VectraCtl, however you can use the amd64 version so long as you have rosetta installed"
0 commit comments