mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
Simplify use_flake check for flag first arguments
This commit is contained in:
parent
aeade6d235
commit
fc4fdbebf1
1 changed files with 1 additions and 1 deletions
2
direnvrc
2
direnvrc
|
|
@ -195,7 +195,7 @@ use_flake() {
|
|||
flake_expr="${1:-.}"
|
||||
flake_dir="${flake_expr%#*}"
|
||||
|
||||
if [[ "$flake_expr" =~ ^-[^#]*$ ]]; then
|
||||
if [[ "$flake_expr" = -* ]]; then
|
||||
if [[ -n "$2" ]]; then
|
||||
log_status "nix-direnv: the first argument must be a flake expression"
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue