Fixed bug in Video If and added .sh to Reload
This commit is contained in:
@@ -50,7 +50,7 @@ cd ~/PiVideo/
|
|||||||
|
|
||||||
GH_URL="https://raw.githubusercontent.com/miT-nib-hcI/PiVideo/main/"
|
GH_URL="https://raw.githubusercontent.com/miT-nib-hcI/PiVideo/main/"
|
||||||
|
|
||||||
if [ -f "~/PiVideo/video.py" ] # Checking if file exsists
|
if ls ~/PiVideo/video.py 1> /dev/null 2>&1; # Checking if file exsists
|
||||||
then
|
then
|
||||||
echo "Script exists, updateing ..."
|
echo "Script exists, updateing ..."
|
||||||
rm ~/PiVideo/video.py # Removing Old File
|
rm ~/PiVideo/video.py # Removing Old File
|
||||||
@@ -60,12 +60,12 @@ then
|
|||||||
rm ~/PiVideo/*.sh # Removing Old Files
|
rm ~/PiVideo/*.sh # Removing Old Files
|
||||||
wget -L $GH_URL"start.sh"
|
wget -L $GH_URL"start.sh"
|
||||||
wget -L $GH_URL"stop.sh"
|
wget -L $GH_URL"stop.sh"
|
||||||
wget -L $GH_URL"reload"
|
wget -L $GH_URL"reload.sh"
|
||||||
else
|
else
|
||||||
wget -L $GH_URL"video.py"
|
wget -L $GH_URL"video.py"
|
||||||
wget -L $GH_URL"start.sh"
|
wget -L $GH_URL"start.sh"
|
||||||
wget -L $GH_URL"stop.sh"
|
wget -L $GH_URL"stop.sh"
|
||||||
wget -L $GH_URL"reload"
|
wget -L $GH_URL"reload.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ls ~/PiVideo/videos/loop* 1> /dev/null 2>&1; # Checking if file exsists
|
if ls ~/PiVideo/videos/trigger* 1> /dev/null 2>&1; # Checking if file exsists
|
||||||
then
|
then
|
||||||
echo "Video exists, updateing ..."
|
echo "Video exists, updateing ..."
|
||||||
rm ~/PiVideo/videos/trigger* # Removing Old Files
|
rm ~/PiVideo/videos/trigger* # Removing Old Files
|
||||||
|
|||||||
Reference in New Issue
Block a user