From 232b06799d0768f535c2e29c06e911ec2a3f27a1 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Tue, 15 Dec 2015 11:04:34 +0100 Subject: make download.sh work when called from a different location, give progress report --- configs/download.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'configs/download.sh') 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 -- cgit v1.2.3