diff options
Diffstat (limited to 'zscripts/nixshell.zsh')
-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} $@ } |