From 43b8be493140f05824acf338c5a2ebae9223699c Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Wed, 26 Mar 2025 16:59:51 +0100 Subject: [PATCH] Send exit code of the command Former-commit-id: 6994b95d788e5ebb2075443318a1bf65be536212 --- home/scripts/nixy/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/scripts/nixy/default.nix b/home/scripts/nixy/default.nix index b448891..e378a2d 100644 --- a/home/scripts/nixy/default.nix +++ b/home/scripts/nixy/default.nix @@ -44,7 +44,7 @@ let command=$(echo "$line" | sed 's/^[^;]*;//;s/^[^;]*;//') exec "$command" - exit 0 + exit $? } [[ $1 == "" ]] && ui