From f4cd752a95fb0cde172e7ce1a8b15568db4274b6 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 25 Feb 2018 03:34:52 +0100 Subject: Intialize *-logs setups from the sample configuration --- adei/scripts/adei-branch.sh | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/adei/scripts/adei-branch.sh b/adei/scripts/adei-branch.sh index 3153552..64d37a4 100755 --- a/adei/scripts/adei-branch.sh +++ b/adei/scripts/adei-branch.sh @@ -52,13 +52,21 @@ LOCK_FILE=.lock cd /adei/src for setup in $ADEI_ENABLED_SETUPS $ADEI_SETUP; do if [[ ! -a setups/$setup ]]; then - if [[ ! -a /adei/cfg/$setup ]]; then - ( - cd /adei/cfg/ - branch "http://darksoft.org/bzr/adei/setups/$setup" + if [[ ! -a /adei/cfg/$setup ]]; then + ( + cd /adei/cfg/ + if [[ "$setup" == *-logs ]]; then + branch "http://darksoft.org/bzr/adei/setups/$setup" &> /dev/null + [ $? -eq 0 ] || cp -ar /adei/src/setups/logs $setup + echo "here" + else + branch "http://darksoft.org/bzr/adei/setups/$setup" + fi ) - fi - ln -s ../../cfg/$setup setups/$setup + fi + if [ -d ../cfg/$setup ]; then + ln -s ../../cfg/$setup setups/$setup + fi fi done ) -- cgit v1.2.3