Skip to content

Commit

Permalink
fix(sign): properly expand input path
Browse files Browse the repository at this point in the history
  • Loading branch information
amimart committed Mar 8, 2024
1 parent 5bb6d2d commit a783c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/credential/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func readFromFileOrStdin(filename string) ([]byte, error) {

// expandPath expands the given path, replacing the "~" symbol with the user's home directory.
func expandPath(path string) (string, error) {
if len(path) == 0 || strings.HasPrefix(path, symbolHome) {
if len(path) == 0 || !strings.HasPrefix(path, symbolHome) {
return path, nil
}

Expand Down

0 comments on commit a783c02

Please sign in to comment.