Better source directory detection.

This commit is contained in:
Fabian Schlenz 2021-11-03 16:18:03 +01:00
parent 9a07f9fc74
commit 99370803e3
5 changed files with 5 additions and 5 deletions

2
dbash
View File

@ -1,5 +1,5 @@
#!/bin/sh
. $(dirname $0)/_get_container.sh
. $(dirname "$(readlink -f "$0")")/_get_container.sh
docker exec -it "$container" /bin/bash

2
dlogs
View File

@ -1,5 +1,5 @@
#!/bin/sh
. $(dirname $0)/_get_container.sh
. $(dirname "$(readlink -f "$0")")/_get_container.sh
docker logs --tail=100 -f "$container"

2
dlogsl
View File

@ -1,5 +1,5 @@
#!/bin/sh
. $(dirname $0)/_get_container.sh
. $(dirname "$(readlink -f "$0")")/_get_container.sh
docker logs -f "$container" 2>&1 | less

2
dlr
View File

@ -1,5 +1,5 @@
#!/bin/sh
. $(dirname $0)/_get_container.sh
. $(dirname "$(readlink -f "$0")")/_get_container.sh
docker restart "$container" && docker logs --tail=100 -f "$container"

2
dsh
View File

@ -1,5 +1,5 @@
#!/bin/sh
. $(dirname $0)/_get_container.sh
. $(dirname "$(readlink -f "$0")")/_get_container.sh
docker exec -it "$container" /bin/sh