Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
Set OLDPWD value (2); always show script version
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsettrack4 committed Sep 14, 2019
1 parent 4887f93 commit e2f2610
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 33 deletions.
25 changes: 13 additions & 12 deletions epg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ fi

if [ ! -e tkm/tkm.sh ]
then
printf "\nMissing file in MagentaTV folder: tkm/swc.sh"
printf "\nMissing file in MagentaTV folder: tkm/tkm.sh"
ERROR="true"
fi

Expand Down Expand Up @@ -567,7 +567,8 @@ fi
#

cd $(pwd)

echo "DIR=$(pwd)" > /tmp/initrun.txt
echo "VER=v0.4.0" >> /tmp/initrun.txt

#
# CHECK INTERNET CONNECTIVITY
Expand Down Expand Up @@ -2830,7 +2831,7 @@ then
echo ""
echo " --------------------------------------------"
echo " HORIZON EPG SIMPLE XMLTV GRABBER "
echo " "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
Expand All @@ -2853,7 +2854,7 @@ then
echo ""
echo " --------------------------------------------"
echo " ZATTOO EPG SIMPLE XMLTV GRABBER "
echo " "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
Expand All @@ -2868,7 +2869,7 @@ then
echo ""
echo " --------------------------------------------"
echo " SWISSCOM EPG SIMPLE XMLTV GRABBER "
echo " "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
Expand All @@ -2882,7 +2883,7 @@ then
echo ""
echo " --------------------------------------------"
echo " TVPLAYER EPG SIMPLE XMLTV GRABBER "
echo " "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
Expand All @@ -2896,7 +2897,7 @@ then
echo ""
echo " --------------------------------------------"
echo " TELEKOM EPG SIMPLE XMLTV GRABBER "
echo " "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
Expand All @@ -2910,7 +2911,7 @@ then
echo ""
echo " --------------------------------------------"
echo " RADIOTIMES EPG SIMPLE XMLTV GRABBER "
echo " "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
Expand All @@ -2924,7 +2925,7 @@ then
echo ""
echo " --------------------------------------------"
echo " WAIPU.TV EPG SIMPLE XMLTV GRABBER "
echo " "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
Expand All @@ -2938,7 +2939,7 @@ then
echo ""
echo " --------------------------------------------"
echo " TV-SPIELFILM EPG SIMPLE XMLTV GRABBER "
echo " "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
Expand All @@ -2952,7 +2953,7 @@ then
echo ""
echo " --------------------------------------------"
echo " VODAFONE EPG SIMPLE XMLTV GRABBER "
echo " "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
Expand All @@ -2966,7 +2967,7 @@ then
echo ""
echo " --------------------------------------------"
echo " EXTERNAL EPG SIMPLE XMLTV GRABBER "
echo " "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
Expand Down
7 changes: 4 additions & 3 deletions ext/settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -339,14 +339,15 @@ do

echo ""
echo " --------------------------------------------"
echo " EXTERNAL EPG SIMPLE XMLTV GRABBER "
echo " "
echo " EXTERNAL EPG SIMPLE XMLTV GRABBER "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
sleep 2s

bash ext.sh && cd - > /dev/null
cd $(pwd)
bash ext.sh && cd $(grep 'DIR=' /tmp/initrun.txt | sed 's/DIR=//g') > /dev/null

cp ext/oa/external.xml xml/external_oa.xml 2> /dev/null
cp ext/ob/external.xml xml/external_ob.xml 2> /dev/null
Expand Down
5 changes: 3 additions & 2 deletions hzn/settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -485,13 +485,14 @@ do
echo ""
echo " --------------------------------------------"
echo " HORIZON EPG SIMPLE XMLTV GRABBER "
echo " "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
sleep 2s

bash hzn.sh && cd - > /dev/null
cd $(pwd)
bash hzn.sh && cd $(grep 'DIR=' /tmp/initrun.txt | sed 's/DIR=//g') > /dev/null

cp hzn/de/horizon.xml xml/horizon_de.xml 2> /dev/null
cp hzn/at/horizon.xml xml/horizon_at.xml 2> /dev/null
Expand Down
5 changes: 3 additions & 2 deletions rdt/settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -434,13 +434,14 @@ do
echo ""
echo " --------------------------------------------"
echo " RADIOTIMES EPG SIMPLE XMLTV GRABBER "
echo " "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
sleep 2s

bash rdt.sh && cd - > /dev/null
cd $(pwd)
bash rdt.sh && cd $(grep 'DIR=' /tmp/initrun.txt | sed 's/DIR=//g') > /dev/null

cp rdt/uk/radiotimes.xml xml/radiotimes_uk.xml 2> /dev/null

Expand Down
5 changes: 3 additions & 2 deletions swc/settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -449,13 +449,14 @@ do
echo ""
echo " --------------------------------------------"
echo " SWISSCOM EPG SIMPLE XMLTV GRABBER "
echo " "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
sleep 2s

bash swc.sh && cd - > /dev/null
cd $(pwd)
bash swc.sh && cd $(grep 'DIR=' /tmp/initrun.txt | sed 's/DIR=//g') > /dev/null

cp swc/ch/swisscom.xml xml/swisscom_ch.xml 2> /dev/null

Expand Down
5 changes: 3 additions & 2 deletions tkm/settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -467,13 +467,14 @@ do
echo ""
echo " --------------------------------------------"
echo " TELEKOM EPG SIMPLE XMLTV GRABBER "
echo " "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
sleep 2s

bash tkm.sh && cd - > /dev/null
cd $(pwd)
bash tkm.sh && cd $(grep 'DIR=' /tmp/initrun.txt | sed 's/DIR=//g') > /dev/null

cp tkm/de/magenta.xml xml/magentatv_de.xml 2> /dev/null

Expand Down
5 changes: 3 additions & 2 deletions tvp/settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,14 @@ do
echo ""
echo " --------------------------------------------"
echo " TVPLAYER EPG SIMPLE XMLTV GRABBER "
echo " "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
sleep 2s

bash tvp.sh && cd - > /dev/null
cd $(pwd)
bash tvp.sh && cd $(grep 'DIR=' /tmp/initrun.txt | sed 's/DIR=//g') > /dev/null

cp tvp/uk/tvp.xml xml/tvplayer_uk.xml 2> /dev/null

Expand Down
5 changes: 3 additions & 2 deletions tvs/settings.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -434,13 +434,14 @@ do
echo ""
echo " --------------------------------------------"
echo " TV-SPIELFILM EPG SIMPLE XMLTV GRABBER "
echo " "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
sleep 2s

bash tvs.sh && cd - > /dev/null
cd $(pwd)
bash tvs.sh && cd $(grep 'DIR=' /tmp/initrun.txt | sed 's/DIR=//g') > /dev/null

cp tvs/de/tv-spielfilm.xml xml/tv-spielfilm_de.xml 2> /dev/null

Expand Down
5 changes: 3 additions & 2 deletions vdf/settings.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -449,13 +449,14 @@ do
echo ""
echo " --------------------------------------------"
echo " VODAFONE EPG SIMPLE XMLTV GRABBER "
echo " "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
sleep 2s

bash vdf.sh && cd - > /dev/null
cd $(pwd)
bash vdf.sh && cd $(grep 'DIR=' /tmp/initrun.txt | sed 's/DIR=//g') > /dev/null

cp vdf/de/vodafone.xml xml/vodafone_de.xml 2> /dev/null

Expand Down
5 changes: 3 additions & 2 deletions wpu/settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -530,13 +530,14 @@ do
echo ""
echo " --------------------------------------------"
echo " WAIPU.TV EPG SIMPLE XMLTV GRABBER "
echo " "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
sleep 2s

bash wpu.sh && cd - > /dev/null
cd $(pwd)
bash wpu.sh && cd $(grep 'DIR=' /tmp/initrun.txt | sed 's/DIR=//g') > /dev/null

cp wpu/de/waipu.xml xml/waipu_de.xml 2> /dev/null

Expand Down
5 changes: 3 additions & 2 deletions ztt/settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -589,13 +589,14 @@ do
echo ""
echo " --------------------------------------------"
echo " ZATTOO EPG SIMPLE XMLTV GRABBER "
echo " "
echo " powered by easyEPG Grabber $(grep 'VER=' /tmp/initrun.txt | sed 's/VER=//g')"
echo " (c) 2019 Jan-Luca Neumann / sunsettrack4 "
echo " --------------------------------------------"
echo ""
sleep 2s

bash ztt.sh && cd - > /dev/null
cd $(pwd)
bash ztt.sh && cd $(grep 'DIR=' /tmp/initrun.txt | sed 's/DIR=//g') > /dev/null

cp ztt/de/zattoo.xml xml/zattoo_de.xml 2> /dev/null
cp ztt/ch/zattoo.xml xml/zattoo_ch.xml 2> /dev/null
Expand Down

0 comments on commit e2f2610

Please sign in to comment.