From 32713b145efdd5b8d0af98b7f739cb548de4e933 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Fri, 12 Sep 2025 21:57:53 -0500 Subject: fix nix-shell-py --- zscripts/nixshell.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zscripts/nixshell.zsh b/zscripts/nixshell.zsh index 16d0ee3..de5e65a 100755 --- a/zscripts/nixshell.zsh +++ b/zscripts/nixshell.zsh @@ -16,9 +16,9 @@ fi function nix-shell-py() { if [ ! -f ./requirements.txt ]; then echo "No requirements.txt file was found in the current directory. Exiting..." 1>&2 - exit 1 + return 1 fi requirements="$(sed 's/#.*//;s/^/python3Packages./' ./requirements.txt | tr -s '\n' ' ')" - nix-shell -p ${=requirements} + nix-shell -p ${=requirements} $@ } -- cgit v1.2.3