Skip to content

Commit

Permalink
refactor to simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Oct 24, 2023
1 parent 8eacb29 commit 2e52bca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions akeyless/akeyless_auth.go → main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package akeyless
package sheller

import (
"errors"
Expand All @@ -15,10 +15,10 @@ func GetTokenFromAkeylessCommandLine() (string, error) {
}

cmdParts := strings.Fields(cmdStr)

// Check if the path points to an executable file
if _, err := os.Stat(cmdParts[0]); os.IsNotExist(err) {
return "", errors.New("The path does not point to an executable file")
return "", errors.New("the path does not point to an executable file")
}

cmd := exec.Command(cmdParts[0], cmdParts[1:]...)
Expand Down
2 changes: 1 addition & 1 deletion akeyless/akeyless_auth_test.go → main_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package akeyless
package sheller

import (
"os"
Expand Down

0 comments on commit 2e52bca

Please sign in to comment.