summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuta SATOH <nigoro@gentoo.gr.jp>2015-08-23 07:57:44 +0900
committerYuta SATOH <nigoro@gentoo.gr.jp>2015-08-23 07:57:44 +0900
commit9fe2f7f34c896fad111c7f05ae29d7bd840f7176 (patch)
tree896086df0ff228862e60316b9ff81f40beffa901
parentautomatic_updater.sh: support FreeBSD 10.2 amd64/clang environment. (diff)
downloadgentoo-bsd-9fe2f7f34c896fad111c7f05ae29d7bd840f7176.tar.gz
gentoo-bsd-9fe2f7f34c896fad111c7f05ae29d7bd840f7176.tar.bz2
gentoo-bsd-9fe2f7f34c896fad111c7f05ae29d7bd840f7176.zip
automatic_updater.sh: Set the correct TARGETVER in set_profile.
-rwxr-xr-xscripts/automatic_updater.sh4
1 files 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
}