chore: don't join if nothing to join
This commit is contained in:
parent
b4fd7fd77c
commit
b3bd058962
|
@ -171,10 +171,10 @@ func newAbraApp(version, commit string) *cli.App {
|
||||||
app.Before = func(c *cli.Context) error {
|
app.Before = func(c *cli.Context) error {
|
||||||
paths := []string{
|
paths := []string{
|
||||||
config.ABRA_DIR,
|
config.ABRA_DIR,
|
||||||
path.Join(config.SERVERS_DIR),
|
config.SERVERS_DIR,
|
||||||
path.Join(config.RECIPES_DIR),
|
config.RECIPES_DIR,
|
||||||
path.Join(config.VENDOR_DIR),
|
config.VENDOR_DIR,
|
||||||
path.Join(config.BACKUP_DIR),
|
config.BACKUP_DIR,
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, path := range paths {
|
for _, path := range paths {
|
||||||
|
|
Loading…
Reference in New Issue