Skip to content

Commit

Permalink
use only first line of bpo in sources.list, Closes: #1006847
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed May 25, 2022
1 parent fc65fc7 commit b82b8a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/fai-mirror
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
! /bin/bash

#*********************************************************************
#
Expand Down Expand Up @@ -373,7 +373,7 @@ Origin: fai-mirror
EOF

# check if backports are used
bponame=$(grep -E '^deb ' $aptcache/etc/apt/sources.list | grep -P -o '\S+-backports')
bponame=$(grep -E '^deb ' $aptcache/etc/apt/sources.list | grep -P -o '\S+-backports' | head -n 1)
# add entry for backports
if [ -n "$bponame" ]; then
cat >> $mirrordir/conf/distributions <<EOF
Expand Down

0 comments on commit b82b8a9

Please sign in to comment.