Skip to content

Commit

Permalink
Extend nixidy cli's flake filter
Browse files Browse the repository at this point in the history
  • Loading branch information
arnarg committed Nov 3, 2024
1 parent 84642d0 commit 149d263
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nixidy/nixidy
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ if [[ -z $COMMAND ]]; then
fi

# Detect if we should use a flake or flake-less approach
if [[ $ENV_PARAM =~ ^[a-zA-Z0-9\:\/\.]+#[a-zA-Z0-9\.]*$ ]]; then
FLAKE_FILTER='^[a-zA-Z0-9\:\/\.\@\_\-]+#[a-zA-Z0-9\.\@\_\-]*$'
if [[ $ENV_PARAM =~ $FLAKE_FILTER ]]; then
setFlakeParam
else
USE_FLAKE=false
Expand Down

0 comments on commit 149d263

Please sign in to comment.