diff options
author | 2015-08-23 07:57:44 +0900 | |
---|---|---|
committer | 2015-08-23 07:57:44 +0900 | |
commit | 9fe2f7f34c896fad111c7f05ae29d7bd840f7176 (patch) | |
tree | 896086df0ff228862e60316b9ff81f40beffa901 /scripts | |
parent | automatic_updater.sh: support FreeBSD 10.2 amd64/clang environment. (diff) | |
download | gentoo-bsd-9fe2f7f34c896fad111c7f05ae29d7bd840f7176.tar.gz gentoo-bsd-9fe2f7f34c896fad111c7f05ae29d7bd840f7176.tar.bz2 gentoo-bsd-9fe2f7f34c896fad111c7f05ae29d7bd840f7176.zip |
automatic_updater.sh: Set the correct TARGETVER in set_profile.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/automatic_updater.sh | 4 |
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 } |