From a3004e0261faf813ab95919382d921597c13e337 Mon Sep 17 00:00:00 2001 From: udeved Date: Sun, 11 Jan 2015 21:09:01 +0100 Subject: [PATCH] [mkset] move load_sets back to util.sh --- lib/util-pkg.sh | 9 --------- lib/util.sh | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/util-pkg.sh b/lib/util-pkg.sh index 373c7fa..6132263 100644 --- a/lib/util-pkg.sh +++ b/lib/util-pkg.sh @@ -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 ;; diff --git a/lib/util.sh b/lib/util.sh index 3bbf853..3b80ad5 100644 --- a/lib/util.sh +++ b/lib/util.sh @@ -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 +}