fix: 0.91 删除了文件路径类型

This commit is contained in:
KAAAsS 2024-03-25 16:41:02 +08:00
parent fed178ca63
commit 306aa0c6f1
Signed by: KAAAsS
GPG Key ID: D22F53AF662411FE

View File

@ -35,6 +35,8 @@ export def --env declare [
# 遍历 local 路径,获得映射
mut new_maps = []
for $local in $locals {
# 解析原文件路径为绝对路径
let local = ($local | path expand -n)
let dest = if ($type == "list<string>") {
# 对于文件列表(如 glob把文件名追加在最后
$dest | path join ($local | path basename)