mirror of
https://cgit.krebsco.de/krops/
synced 2025-05-16 07:48:26 +00:00
populate passage: rename loop variables
This commit is contained in:
parent
281fc9a078
commit
c09b3c1fde
@ -189,14 +189,15 @@ let
|
|||||||
${findutils}/bin/find "$PASSAGE_DIR" -type f -name \*.age -follow |
|
${findutils}/bin/find "$PASSAGE_DIR" -type f -name \*.age -follow |
|
||||||
while read -r age_path; do
|
while read -r age_path; do
|
||||||
|
|
||||||
rel_name=''${age_path#$PASSAGE_DIR}
|
pass_name=''${age_path#$PASSAGE_DIR/}
|
||||||
rel_name=''${rel_name%.age}
|
pass_name=''${pass_name%.age}
|
||||||
|
|
||||||
tmp_path=$tmp_dir/$rel_name
|
out=$tmp_dir/$pass_name
|
||||||
|
|
||||||
${coreutils}/bin/mkdir -p "$(${coreutils}/bin/dirname "$tmp_path")"
|
${coreutils}/bin/mkdir -p "$(${coreutils}/bin/dirname "$out")"
|
||||||
${passage}/bin/passage show "$rel_name" > "$tmp_path"
|
${passage}/bin/passage show "$pass_name" > "$out"
|
||||||
${coreutils}/bin/touch -r "$age_path" "$tmp_path"
|
|
||||||
|
${coreutils}/bin/touch -r "$age_path" "$out"
|
||||||
done
|
done
|
||||||
|
|
||||||
${findutils}/bin/find "$tmp_dir" -type d \
|
${findutils}/bin/find "$tmp_dir" -type d \
|
||||||
|
Loading…
Reference in New Issue
Block a user