aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2026-05-18 15:43:44 +0200
committerNicholas Rodrigues Lordello <[email protected]>2026-05-18 15:43:44 +0200
commit224bbea0cd08efd3d85623c8a60883306cc4d008 (patch)
tree405d6eb252656bff9ae50c50926e6b6295ecb0ad
parented79169dc1b6bb662cf83714612e777ccdfa7090 (diff)
Quieter Output
-rwxr-xr-xdbx2
-rwxr-xr-xdbx-create5
-rwxr-xr-xdbx-init3
-rwxr-xr-xdbx-start4
4 files changed, 8 insertions, 6 deletions
diff --git a/dbx b/dbx
index 261a2a2..0441346 100755
--- a/dbx
+++ b/dbx
@@ -22,7 +22,7 @@ shift || true
case "$#:$cmd" in
0:create|0:enter|1:proxy|0:start)
- "$r/dbx-$cmd" "$@"
+ "$R/dbx-$cmd" "$@"
;;
*)
usage
diff --git a/dbx-create b/dbx-create
index 94409ba..99d80da 100755
--- a/dbx-create
+++ b/dbx-create
@@ -6,7 +6,7 @@ set -euo pipefail
C="dbx"
if ! container system status &>/dev/null; then
- container system start
+ container system start >/dev/null
fi
if container list --all | grep $C >/dev/null; then
@@ -19,4 +19,5 @@ container create \
--memory 8G \
--name $C \
--publish 127.0.0.1:4222:22 \
- $C
+ $C \
+ >/dev/null
diff --git a/dbx-init b/dbx-init
index 5f7949d..184e4f1 100755
--- a/dbx-init
+++ b/dbx-init
@@ -4,7 +4,8 @@
set -euo pipefail
if [[ ! -f /run/.dbxenv ]]; then
- echo "ERROR: not in a devbox" >&2
+ echo "ERROR: not in a devbox" >&2
+ exit 1
fi
exec tini /usr/sbin/sshd -- -D -e
diff --git a/dbx-start b/dbx-start
index 4317345..0fd1419 100755
--- a/dbx-start
+++ b/dbx-start
@@ -6,7 +6,7 @@ set -euo pipefail
C="dbx"
if ! container system status &>/dev/null; then
- container system start
+ container system start >/dev/null
fi
-container start $C
+container start $C >/dev/null