Fix local flakes when prefixed with "path:"

As mentioned in #347
This commit is contained in:
Bryan Bennett 2023-10-31 12:03:26 -04:00
parent 999093c7e6
commit 4bf5d40290
No known key found for this signature in database
GPG Key ID: EF90E3E98B8F5C0B

View File

@ -212,6 +212,7 @@ use_flake() {
flake_expr="${1:-.}"
flake_dir="${flake_expr%#*}"
flake_dir=${flake_dir#"path:"}
if [[ "$flake_expr" = -* ]]; then
if [[ -n "$2" ]]; then