From e2f2610238cca47d331dc1d8aa24aeb5872a7617 Mon Sep 17 00:00:00 2001 From: Jan-Luca Date: Sat, 14 Sep 2019 12:23:01 +0200 Subject: [PATCH] Set OLDPWD value (2); always show script version --- epg.sh | 25 +++++++++++++------------ ext/settings.sh | 7 ++++--- hzn/settings.sh | 5 +++-- rdt/settings.sh | 5 +++-- swc/settings.sh | 5 +++-- tkm/settings.sh | 5 +++-- tvp/settings.sh | 5 +++-- tvs/settings.sh | 5 +++-- vdf/settings.sh | 5 +++-- wpu/settings.sh | 5 +++-- ztt/settings.sh | 5 +++-- 11 files changed, 44 insertions(+), 33 deletions(-) mode change 100644 => 100755 tvs/settings.sh mode change 100644 => 100755 vdf/settings.sh diff --git a/epg.sh b/epg.sh index e98a0b7..0a4622d 100755 --- a/epg.sh +++ b/epg.sh @@ -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 @@ -567,7 +567,8 @@ fi # cd $(pwd) - +echo "DIR=$(pwd)" > /tmp/initrun.txt +echo "VER=v0.4.0" >> /tmp/initrun.txt # # CHECK INTERNET CONNECTIVITY @@ -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 "" @@ -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 "" @@ -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 "" @@ -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 "" @@ -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 "" @@ -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 "" @@ -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 "" @@ -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 "" @@ -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 "" @@ -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 "" diff --git a/ext/settings.sh b/ext/settings.sh index 6764393..137a356 100755 --- a/ext/settings.sh +++ b/ext/settings.sh @@ -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 diff --git a/hzn/settings.sh b/hzn/settings.sh index 7e532c5..0f4a776 100755 --- a/hzn/settings.sh +++ b/hzn/settings.sh @@ -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 diff --git a/rdt/settings.sh b/rdt/settings.sh index cecef68..dababd0 100755 --- a/rdt/settings.sh +++ b/rdt/settings.sh @@ -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 diff --git a/swc/settings.sh b/swc/settings.sh index f630439..573254f 100755 --- a/swc/settings.sh +++ b/swc/settings.sh @@ -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 diff --git a/tkm/settings.sh b/tkm/settings.sh index 491f93c..9e04479 100755 --- a/tkm/settings.sh +++ b/tkm/settings.sh @@ -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 diff --git a/tvp/settings.sh b/tvp/settings.sh index c341247..7cebda6 100755 --- a/tvp/settings.sh +++ b/tvp/settings.sh @@ -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 diff --git a/tvs/settings.sh b/tvs/settings.sh old mode 100644 new mode 100755 index f76daa5..e7beb16 --- a/tvs/settings.sh +++ b/tvs/settings.sh @@ -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 diff --git a/vdf/settings.sh b/vdf/settings.sh old mode 100644 new mode 100755 index 0d5895a..8cf7bad --- a/vdf/settings.sh +++ b/vdf/settings.sh @@ -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 diff --git a/wpu/settings.sh b/wpu/settings.sh index d921acc..ff38a9f 100755 --- a/wpu/settings.sh +++ b/wpu/settings.sh @@ -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 diff --git a/ztt/settings.sh b/ztt/settings.sh index 70afc88..6fc9fac 100755 --- a/ztt/settings.sh +++ b/ztt/settings.sh @@ -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