diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2026-05-18 15:43:44 +0200 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2026-05-18 15:43:44 +0200 |
| commit | 224bbea0cd08efd3d85623c8a60883306cc4d008 (patch) | |
| tree | 405d6eb252656bff9ae50c50926e6b6295ecb0ad | |
| parent | ed79169dc1b6bb662cf83714612e777ccdfa7090 (diff) | |
Quieter Output
| -rwxr-xr-x | dbx | 2 | ||||
| -rwxr-xr-x | dbx-create | 5 | ||||
| -rwxr-xr-x | dbx-init | 3 | ||||
| -rwxr-xr-x | dbx-start | 4 |
4 files changed, 8 insertions, 6 deletions
@@ -22,7 +22,7 @@ shift || true case "$#:$cmd" in 0:create|0:enter|1:proxy|0:start) - "$r/dbx-$cmd" "$@" + "$R/dbx-$cmd" "$@" ;; *) usage @@ -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 @@ -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 @@ -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 |
