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 dd277d1
Browse filesBrowse the repository at this point in the historyBrowse files
Refactored function names in install.ps1 and install.sh to use consistent and idiomatic naming conventions (snake_case for Bash, -not for PowerShell). Updated all function calls and main logic to match new names. Improved error handling and output messages for clarity.
#36
local supported=(darwin-x64 linux-x64 linux-arm linux-arm64)
42
42
local current_osarch="${OS}-${ARCH}"
@@ -49,7 +49,7 @@ verifySupported() {
49
49
done
50
50
51
51
if [[ "$current_osarch"=="darwin-arm64" ]];then
52
-
ifisReleaseAvailable"$releaseTag";then
52
+
ifis_release_available"$releaseTag";then
53
53
return
54
54
else
55
55
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"
@@ -63,7 +63,7 @@ verifySupported() {
63
63
exit 1
64
64
}
65
65
66
-
runAsRoot() {
66
+
run_as_root() {
67
67
local CMD="$*"
68
68
69
69
if [[ $EUID-ne 0 &&$USE_SUDO="true" ]];then
@@ -77,7 +77,7 @@ runAsRoot() {
77
77
return
78
78
}
79
79
80
-
checkHttpRequestVectraCtl() {
80
+
check_http_request_vectractl() {
81
81
iftype"curl"> /dev/null;then
82
82
HTTP_REQUEST_VECTRACTL=curl
83
83
eliftype"wget"> /dev/null;then
@@ -89,7 +89,7 @@ checkHttpRequestVectraCtl() {
89
89
return
90
90
}
91
91
92
-
checkExistingVectraCtl() {
92
+
check_existing_vectractl() {
93
93
if [[ -f"$VECTRACTL_FILE" ]];then
94
94
echo -e "\nVectraCtl is detected:"
95
95
"$VECTRACTL_FILE" --version
@@ -100,7 +100,7 @@ checkExistingVectraCtl() {
100
100
return
101
101
}
102
102
103
-
getLatestRelease() {
103
+
get_latest_release() {
104
104
local vectractl_release_url="https://api.github.com/repos/${GITHUB_ORG}/${GITHUB_REPO}/releases"
0 commit comments