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:
parent
c75776e589
commit
ba674c8bb4
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue