summaryrefslogtreecommitdiffstats
path: root/adei/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'adei/scripts')
-rwxr-xr-xadei/scripts/adei-branch.sh20
1 files 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
)