LelouBil
01/19/2026, 10:39 AMsh
#!/bin/sh
set -euxo pipefail
set -a
. /usr/lib/environment.d/desktop-env.conf
set +a
echo "STDOUT HERE"
>&2 echo "STDERR HERE"
export XDG_RUNTIME_DIR=/tmp
exec Hyprland --verify-config --i-am-really-stupid
echo "STDOUT AFTER"
exit 1
(I added the echos while debugging)
When building it fails like this
l/leloublue:latest => #59 0.123 ============================ Start 'script' Module ============================
l/leloublue:latest => #59 0.168 Running snippet:
l/leloublue:latest => #59 0.168 /usr/share/desktop-config/check.sh
l/leloublue:latest => #59 0.170 + set -a
l/leloublue:latest => #59 0.170 + . /usr/lib/environment.d/desktop-env.conf
l/leloublue:latest => #59 0.170 + set +a
l/leloublue:latest => #59 0.170 + echo 'STDOUT HERE'
l/leloublue:latest => #59 0.170 + echo 'STDERR HERE'
l/leloublue:latest => #59 0.170 STDERR HERE
l/leloublue:latest => #59 0.170 + export XDG_RUNTIME_DIR=/tmp
l/leloublue:latest => #59 0.170 + XDG_RUNTIME_DIR=/tmp
l/leloublue:latest => #59 0.170 + exec Hyprland --verify-config --i-am-really-stupid
l/leloublue:latest => #59 0.265 Error: nu::shell::eval_block_with_input
The output is too long for a single message, but right after this it fails with × External command had a non-zero exit code
So I am pretty sure the Hyprland command is failing.
But I don't get any stdout output in order to actually debug it, did I miss something ?Answer Overflow
01/19/2026, 10:39 AMfiftydinar
01/19/2026, 10:41 AMsh
if ! exec Hyprland --verify-config --i-am-really-stupid; then
echo "STDOUT AFTER"
exit 1
fififtydinar
01/19/2026, 10:43 AMsh
exec Hyprland --verify-config --i-am-really-stupid
echo "STDOUT AFTER"
exit 1fiftydinar
01/19/2026, 10:44 AM-e option worksLelouBil
01/19/2026, 10:50 AMLelouBil
01/19/2026, 10:50 AMLelouBil
01/19/2026, 10:50 AMLelouBil
01/19/2026, 10:50 AMLelouBil
01/19/2026, 10:50 AMLelouBil
01/19/2026, 10:50 AMLelouBil
01/19/2026, 10:51 AMfiftydinar
01/19/2026, 10:56 AMfiftydinar
01/19/2026, 10:57 AM