refactor: less quotes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-12-25 02:03:09 +01:00
parent 14400d4ed8
commit 3b5354b2a5
26 changed files with 51 additions and 51 deletions

View File

@ -41,7 +41,7 @@ var appBackupCommand = &cli.Command{
abraSh := path.Join(config.ABRA_DIR, "apps", app.Type, "abra.sh")
if _, err := os.Stat(abraSh); err != nil {
if os.IsNotExist(err) {
logrus.Fatalf("'%s' does not exist?", abraSh)
logrus.Fatalf("%s does not exist?", abraSh)
}
logrus.Fatal(err)
}
@ -62,7 +62,7 @@ var appBackupCommand = &cli.Command{
logrus.Fatal(err)
}
if !strings.Contains(string(bytes), execCmd) {
logrus.Fatalf("%s doesn't have a '%s' function", app.Type, execCmd)
logrus.Fatalf("%s doesn't have a %s function", app.Type, execCmd)
}
sourceAndExec := fmt.Sprintf("%s; %s", sourceCmd, execCmd)