Lines 306-312
Link Here
|
306 |
# Request/original patch by Bret Towe <btowe@gbis.com> |
306 |
# Request/original patch by Bret Towe <btowe@gbis.com> |
307 |
# |
307 |
# |
308 |
if [ "$(grep ${PATTERN} /etc/make.conf)" ] ; then |
308 |
if [ "$(grep ${PATTERN} /etc/make.conf)" ] ; then |
309 |
mv /etc/make.conf /etc/make.conf.old |
309 |
cp -p /etc/make.conf /etc/make.conf.old |
310 |
sed "s#^[ \#]*${PATTERN}.*#${PATTERN}\"${MIRRORS}\"#" /etc/make.conf.old > /etc/make.conf |
310 |
sed "s#^[ \#]*${PATTERN}.*#${PATTERN}\"${MIRRORS}\"#" /etc/make.conf.old > /etc/make.conf |
311 |
else |
311 |
else |
312 |
echo "${PATTERN}\"$MIRRORS\"" >> /etc/make.conf |
312 |
echo "${PATTERN}\"$MIRRORS\"" >> /etc/make.conf |