Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
modify method to check for cli updates
Maidul Islam44b2bc1795fb
diff --git a/cli/packages/util/check-for-update.go b/cli/packages/util/check-for-update.goindex 5fbf39a1e2..a23b90ad1f 100644--- a/cli/packages/util/check-for-update.go+++ b/cli/packages/util/check-for-update.go@@ -2,10 +2,10 @@ package utilimport ("encoding/json"+ "errors""fmt""io/ioutil""net/http"- "errors")func CheckForUpdate() {@@ -42,5 +42,5 @@ func getLatestTag(repoOwner string, repoName string) (string, error) {json.Unmarshal(body, &tags)- return tags[0].Name, nil+ return tags[0].Name[1:], nil}diff --git a/cli/packages/util/vault.go b/cli/packages/util/vault.goindex 7e4ce1b31c..0852e5f489 100644--- a/cli/packages/util/vault.go+++ b/cli/packages/util/vault.go@@ -57,7 +57,7 @@ func fileKeyringPassphrasePrompt(prompt string) (string, error) {if password, ok := os.LookupEnv("INFISICAL_VAULT_FILE_PASSPHRASE"); ok {return password, nil} else {- fmt.Println("You may set the `INFISICAL_VAULT_FILE_PASSPHRASE` environment variable to avoid typing password")+ fmt.Println("You may set the environment variable `INFISICAL_VAULT_FILE_PASSPHRASE` with your password to avoid typing it")}fmt.Fprintf(os.Stderr, "%s:", prompt)@@ -65,6 +65,7 @@ func fileKeyringPassphrasePrompt(prompt string) (string, error) {if err != nil {return "", err}+fmt.Println("")return string(b), nil}