diff options
author | Tim Keller <tjk@tjkeller.xyz> | 2025-09-12 21:57:53 -0500 |
---|---|---|
committer | Tim Keller <tjk@tjkeller.xyz> | 2025-09-12 21:57:53 -0500 |
commit | 32713b145efdd5b8d0af98b7f739cb548de4e933 (patch) | |
tree | 99a59a3b436fcd80d864bd2b2335831c76cde5a8 | |
parent | b81ab140dab23a4d5c3a87f150be625c9c28eb2b (diff) | |
download | zsh-32713b145efdd5b8d0af98b7f739cb548de4e933.tar.xz zsh-32713b145efdd5b8d0af98b7f739cb548de4e933.zip |
fix nix-shell-py
-rwxr-xr-x | zscripts/nixshell.zsh | 4 |
1 files 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} $@ } |