commit:     9fe2f7f34c896fad111c7f05ae29d7bd840f7176
Author:     Yuta SATOH <nigoro <AT> gentoo <DOT> gr <DOT> jp>
AuthorDate: Sat Aug 22 22:57:44 2015 +0000
Commit:     Yuta SATOH <nigoro <AT> gentoo <DOT> gr <DOT> jp>
CommitDate: Sat Aug 22 22:57:44 2015 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-bsd.git/commit/?id=9fe2f7f3

automatic_updater.sh: Set the correct TARGETVER in set_profile.

 scripts/automatic_updater.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/automatic_updater.sh b/scripts/automatic_updater.sh
index 3749286..0ab1f22 100755
--- a/scripts/automatic_updater.sh
+++ b/scripts/automatic_updater.sh
@@ -15,9 +15,9 @@ fi
 set_profile(){
        emerge --info | head -n 1 | grep clang && :
        if [[ $? -eq 0 ]] ; then
-               eselect profile set $(eselect profile list | awk '{print $1}' | 
sed 's:\[::g' | sed 's:\]::g' | tail -n 1)
+               eselect profile set $(eselect profile list | grep 
"${TARGETVER}" | awk '{print $1}' | sed 's:\[::g' | sed 's:\]::g' | tail -n 1)
        else
-               eselect profile set $(eselect profile list | grep -v clang | 
awk '{print $1}' | sed 's:\[::g' | sed 's:\]::g' | tail -n 1)
+               eselect profile set $(eselect profile list | grep 
"${TARGETVER}" | grep -v clang | awk '{print $1}' | sed 's:\[::g' | sed 
's:\]::g' | tail -n 1)
        fi
 }
 

Reply via email to