Consistent function style

This commit is contained in:
Bob Mottram 2018-03-08 11:09:11 +00:00
parent 4c21484c95
commit d1dce3d3d7
1 changed files with 2 additions and 2 deletions

View File

@ -143,11 +143,11 @@ BMX7_COMMIT='0a82c7c10fef44b259b35e77ab33632aa132d219'
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
function configure_backports { configure_backports() {
echo "deb http://${DEBIAN_REPO}/debian/ ${DEBIAN_VERSION}-backports main" >> "$rootdir/etc/apt/sources.list" echo "deb http://${DEBIAN_REPO}/debian/ ${DEBIAN_VERSION}-backports main" >> "$rootdir/etc/apt/sources.list"
} }
function configure_contrib_repo { configure_contrib_repo() {
if ! grep -q "contrib" "$rootdir/etc/apt/sources.list"; then if ! grep -q "contrib" "$rootdir/etc/apt/sources.list"; then
chroot "$rootdir" /bin/sed -i "s| main| main contrib|g" /etc/apt/sources.list chroot "$rootdir" /bin/sed -i "s| main| main contrib|g" /etc/apt/sources.list
fi fi