Skip to content

Commit

Permalink
Merge pull request #141 from BlankOn/herpiko-weekend-patches-1
Browse files Browse the repository at this point in the history
  • Loading branch information
herpiko authored Jul 18, 2021
2 parents e4ac931 + f718022 commit 6c63ec0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/cli/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
b64 "encoding/base64"
"encoding/json"
"errors"
"fmt"
Expand Down Expand Up @@ -190,7 +191,7 @@ func main() {
},
Action: func(ctx *cli.Context) (err error) {

ignoreChecks := ctx.Bool("ignore-checks")
ignoreChecks := ctx.Bool("ignore-checks") && ctx.Bool("experimental")

err = checkForInitValues()
if err != nil {
Expand Down Expand Up @@ -606,7 +607,7 @@ func main() {
// Signing a token
log.Println("Signing auth token...")
cmdStr = "cd " + homeDir + "/.irgsh/tmp/" + tmpID
cmdStr += "/ && echo '" + string(jsonByte) + "' > token && gpg -u " + maintainerSigningKey + " --clearsign --output token.sig --sign token"
cmdStr += "/ && echo '" + b64.StdEncoding.EncodeToString(jsonByte) + "' | base64 -d > token && gpg -u " + maintainerSigningKey + " --clearsign --output token.sig --sign token"
fmt.Println(cmdStr)
cmd = exec.Command("bash", "-c", cmdStr)
// Make it interactive
Expand Down

0 comments on commit 6c63ec0

Please sign in to comment.