Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Run `awk` before `grep` in the `attach` recipe (#1935)

Dhruv Bhanushalid374e242fc40
diff --git a/justfile b/justfile
index 13563e09d..098dbc106 100644
--- a/justfile
+++ b/justfile
@@ -194,9 +194,9 @@ recreate:
logs services="" args=(if IS_CI != "" { "" } else { "-f" }):
just dc logs {{ args }} {{ services }}
-# Attach to the specificed `service`. Enables interacting with the TTY of the running service.
+# Attach to the specificed service to interacting with its TTY
attach service:
- docker attach $(docker-compose ps | grep {{ service }} | awk '{print $1}')
+ docker attach $(just dc ps | awk '{print $1}' | grep {{ service }})
# Execute statement in service containers using Docker Compose
exec +args: