aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigs/download.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/configs/download.sh b/configs/download.sh
index c2a2b3e..7571e96 100755
--- a/configs/download.sh
+++ b/configs/download.sh
@@ -1,14 +1,19 @@
-#!/bin/sh
+#!/bin/bash
# conferences
-wd=`pwd`
+owd="$(pwd)"
+cd "${0%/*}"
+wd="$(pwd)"
for d in conferences/*; do
if [ -x $d/download.sh ]; then
- cd $d
+ echo "$d"
+ cd "$d"
./download.sh
- cd $wd
+ cd "$wd"
fi
done
+cd "$owd"
# eventkalender upcoming
+echo "eventkalender"
wget -q --no-check-certificate "https://c3voc.de/eventkalender/events.json?filter=upcoming&streaming=yes" -O /tmp/upcoming.json && mv /tmp/upcoming.json upcoming.json