Lines 87-98
set_symlink() {
Link Here
|
87 |
repo=${target%%::*}; target=${target#*::} |
87 |
repo=${target%%::*}; target=${target#*::} |
88 |
repopath=${target%%::*}; target=${target#*::} |
88 |
repopath=${target%%::*}; target=${target#*::} |
89 |
status=${target#*::}; status=${status%%::*} |
89 |
status=${target#*::}; status=${status%%::*} |
90 |
target=${target%%::*} |
90 |
target=${target%%::*} |
91 |
if [[ ${status} == exp && -z ${force} ]]; then |
91 |
if [[ ${status} == exp && -z ${force} ]]; then |
92 |
write_error_msg "Profile ${target} is experimental" |
92 |
# are any non-experimental targets available? |
93 |
die -q "Refusing to select ${status} profile without --force option" |
93 |
local t |
|
|
94 |
for t in "${targets[@]#*::*::*::}"; do |
95 |
[[ ${t%%::*} == exp ]] && continue |
96 |
write_error_msg "Profile ${target} is experimental" |
97 |
die -q "Refusing to select exp profile without --force option" |
98 |
done |
99 |
write_warning_msg "Profile ${target} is experimental" |
94 |
fi |
100 |
fi |
95 |
elif [[ -n ${target} ]]; then |
101 |
elif [[ -n ${target} ]]; then |
96 |
# if the profile was explicitly specified (rather than a number) |
102 |
# if the profile was explicitly specified (rather than a number) |
97 |
# double check and make sure it's valid |
103 |
# double check and make sure it's valid |
98 |
arch=$(arch) |
104 |
arch=$(arch) |