From 6fa9e8f824fb7f5e24ac537a0ec5a897e73d2e26 Mon Sep 17 00:00:00 2001 From: zhengqiakai Date: Fri, 20 Oct 2023 11:28:19 +0000 Subject: [PATCH] ... --- .x-cmd/fabu-pages | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.x-cmd/fabu-pages b/.x-cmd/fabu-pages index ca15bfb..cc8c238 100644 --- a/.x-cmd/fabu-pages +++ b/.x-cmd/fabu-pages @@ -19,16 +19,17 @@ action_main(){( x cd "$download_fp" || return - x mkdirp "dist/$version" local folder; local dir; dir="$(x wsroot)/dist/$version" + x rmrf "$dir"; x mkdirp "$dir" for folder in pages*; do local dstfp="${dir}/${folder}.tgz" - [ -f "$dstfp" ] || { + ( # x:info x z "$dstfp" "$folder" - x z "$dstfp" "$folder" || return + x cd "$folder" || return + x z "$dstfp" ./ || return printf "\n" - } + ) done (