From 8016833a5b0c38960afe38cf5f3fe1d3d1c08b8c Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 14 Jan 2020 17:35:17 +0000 Subject: [PATCH] metafiles: cd into repo if this isn't done already --- aptosaurus.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aptosaurus.sh b/aptosaurus.sh index 2ee49df..f28fd01 100755 --- a/aptosaurus.sh +++ b/aptosaurus.sh @@ -142,6 +142,9 @@ task_update() { } task_metafiles() { + if [[ "$(basename "${PWD}")" != "$(basename "${dir_repo}")" ]]; then + cd "${dir_repo}"; + fi task_begin "Building packages file"; apt-ftparchive packages . >Packages; execute bzip2 -kf Packages;