hooks/file-mirror-automount/setup00.sh: instead of grepping for Repo-URI, only output REPO_URI

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-06-04 08:49:44 +02:00
parent 153d1fa969
commit 51ad1426c3
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -8,8 +8,8 @@ fi
rootdir="$1"
env APT_CONFIG=$MMDEBSTRAP_APT_CONFIG apt-get indextargets --no-release-info \
| sed -ne 's/^Repo-URI: file:\/\+//p' \
env APT_CONFIG=$MMDEBSTRAP_APT_CONFIG apt-get indextargets --no-release-info --format '$(REPO_URI)' \
| sed -ne 's/^file:\/\+//p' \
| sort -u \
| while read path; do
mkdir -p "$rootdir/run/mmdebstrap"