diff options
| author | 2025-12-02 16:18:59 +0100 | |
|---|---|---|
| committer | 2025-12-02 16:18:59 +0100 | |
| commit | 4b39f4e7113270c0138dd2e2558bd7dafc6c0d3a (patch) | |
| tree | 711bebed15df070f9574280cb999a529c691ba36 | |
| parent | flake: add websocat, jq (diff) | |
| signature | ||
fossil-archive: don't leak clone location
| -rwxr-xr-x | bin/fossil-archive | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/fossil-archive b/bin/fossil-archive index fb7ba68..35bfa0b 100755 --- a/bin/fossil-archive +++ b/bin/fossil-archive @@ -30,11 +30,12 @@ echo "-- making $item_id folder --" mkdir "$work_dir" while IFS='' read -r url; do - urlp="$work_dir/$(safeurl "$url")" + urlp="$(safeurl "$url")" + urlwp="$work_dir/$urlp" { echo "$ fossil clone --unversioned -v --once --no-open $url $urlp.bundle --" - USER=archiveteam-codearchiver-runner fossil clone --unversioned -v --once --no-open "$url" "$urlp.bundle" || true - } 2>&1 | tee "$urlp.log" + USER=archiveteam-codearchiver-runner fossil clone --unversioned -v --once --no-open "$url" "$urlwp.bundle" || true + } 2>&1 | tee "$urlwp.log" done echo "-- finished job for $base_url --" |
