refactor: less quotes
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
5513754c22
commit
48c965bb21
|
@ -41,7 +41,7 @@ The new example repository is cloned to ~/.abra/apps/<recipe>.
|
||||||
|
|
||||||
directory := path.Join(config.APPS_DIR, recipeName)
|
directory := path.Join(config.APPS_DIR, recipeName)
|
||||||
if _, err := os.Stat(directory); !os.IsNotExist(err) {
|
if _, err := os.Stat(directory); !os.IsNotExist(err) {
|
||||||
logrus.Fatalf("'%s' recipe directory already exists?", directory)
|
logrus.Fatalf("%s recipe directory already exists?", directory)
|
||||||
}
|
}
|
||||||
|
|
||||||
url := fmt.Sprintf("%s/example.git", config.REPOS_BASE_URL)
|
url := fmt.Sprintf("%s/example.git", config.REPOS_BASE_URL)
|
||||||
|
@ -53,7 +53,7 @@ The new example repository is cloned to ~/.abra/apps/<recipe>.
|
||||||
if err := os.RemoveAll(gitRepo); err != nil {
|
if err := os.RemoveAll(gitRepo); err != nil {
|
||||||
logrus.Fatal(err)
|
logrus.Fatal(err)
|
||||||
}
|
}
|
||||||
logrus.Debugf("removed git repo in '%s'", gitRepo)
|
logrus.Debugf("removed git repo in %s", gitRepo)
|
||||||
|
|
||||||
toParse := []string{
|
toParse := []string{
|
||||||
path.Join(config.APPS_DIR, recipeName, "README.md"),
|
path.Join(config.APPS_DIR, recipeName, "README.md"),
|
||||||
|
@ -88,7 +88,7 @@ The new example repository is cloned to ~/.abra/apps/<recipe>.
|
||||||
}
|
}
|
||||||
|
|
||||||
logrus.Infof(
|
logrus.Infof(
|
||||||
"new recipe '%s' created in %s, happy hacking!\n",
|
"new recipe %s created in %s, happy hacking!\n",
|
||||||
recipeName, path.Join(config.APPS_DIR, recipeName),
|
recipeName, path.Join(config.APPS_DIR, recipeName),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue