1 |
Author: ulm |
2 |
Date: 2009-10-06 05:50:15 +0000 (Tue, 06 Oct 2009) |
3 |
New Revision: 681 |
4 |
|
5 |
Modified: |
6 |
trunk/modules/profile.eselect |
7 |
Log: |
8 |
Minor syntax fixes. |
9 |
|
10 |
Modified: trunk/modules/profile.eselect |
11 |
=================================================================== |
12 |
--- trunk/modules/profile.eselect 2009-10-05 16:57:01 UTC (rev 680) |
13 |
+++ trunk/modules/profile.eselect 2009-10-06 05:50:15 UTC (rev 681) |
14 |
@@ -33,15 +33,14 @@ |
15 |
|
16 |
# set the make.profile symlink |
17 |
set_symlink() { |
18 |
- local portdir=$(portageq portdir) target=${1} targets |
19 |
+ local portdir=$(portageq portdir) target=${1} targets arch parch |
20 |
+ |
21 |
if is_number "${target}" ; then |
22 |
targets=( $(find_targets "${portdir}") ) |
23 |
[[ -z ${targets} ]] && die -q "Failed to get a list of valid profiles" |
24 |
- target=${targets[$(( ${target} - 1 ))]} |
25 |
+ target=${targets[target - 1]} |
26 |
elif [[ -n ${target} && -d ${ROOT}${portdir}/profiles/${target} ]] |
27 |
then |
28 |
- local arch parch |
29 |
- |
30 |
# if the profile was explicitly specified (rather than a number) |
31 |
# double check and make sure it's valid |
32 |
arch=$(arch) |