forked from mirrored-repos/manjaro-tools
[mkset] move load_sets back to util.sh
This commit is contained in:
parent
882627ffaf
commit
a3004e0261
2 changed files with 9 additions and 9 deletions
|
@ -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 ;;
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue