[mkset] move load_sets back to util.sh

This commit is contained in:
udeved 2015-01-11 21:09:01 +01:00
parent 882627ffaf
commit a3004e0261
2 changed files with 9 additions and 9 deletions

View file

@ -9,15 +9,6 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
load_sets(){
local prof temp
for item in $(ls ${profiledir}/*.set); do
temp=${item##*/}
prof=${prof:-}${prof:+|}${temp%.set}
done
echo $prof
}
eval_profile(){
eval "case $1 in
$(load_sets)) is_profile=true ;;

View file

@ -368,3 +368,12 @@ load_config(){
return 0
}
load_sets(){
local prof temp
for item in $(ls ${profiledir}/*.set); do
temp=${item##*/}
prof=${prof:-}${prof:+|}${temp%.set}
done
echo $prof
}