1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

nix-script: don't add src for all commands

This commit is contained in:
Daiderd Jordan 2016-12-27 20:51:34 +01:00
parent c75776e589
commit ba674c8bb4
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -141,8 +141,10 @@ done
if [ -z "$action" ]; then action='repl'; fi
if [ -z "$src" -a -f ./default.nix ]; then
src='./.'
if [ "$action" = instantiate -o "$action" = build -o "$action" = shell ]; then
if [ -z "$src" -a -f ./default.nix ]; then
src='./.'
fi
fi
if [ "$#" -gt 0 ]; then