forked from toolshed/abra
refactor: less quotes
This commit is contained in:
@ -19,13 +19,13 @@ func PassInsertSecret(secretValue, secretName, appName, server string) error {
|
||||
secretValue, server, appName, secretName,
|
||||
)
|
||||
|
||||
logrus.Debugf("attempting to run '%s'", cmd)
|
||||
logrus.Debugf("attempting to run %s", cmd)
|
||||
|
||||
if err := exec.Command("bash", "-c", cmd).Run(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
logrus.Infof("'%s' inserted into pass store", secretName)
|
||||
logrus.Infof("%s inserted into pass store", secretName)
|
||||
|
||||
return nil
|
||||
}
|
||||
@ -41,13 +41,13 @@ func PassRmSecret(secretName, appName, server string) error {
|
||||
server, appName, secretName,
|
||||
)
|
||||
|
||||
logrus.Debugf("attempting to run '%s'", cmd)
|
||||
logrus.Debugf("attempting to run %s", cmd)
|
||||
|
||||
if err := exec.Command("bash", "-c", cmd).Run(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
logrus.Infof("'%s' removed from pass store", secretName)
|
||||
logrus.Infof("%s removed from pass store", secretName)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user