prevent future errors
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
[[ -f downloaded_r34.txt ]] || echo "no file to download from" || exit 1
|
||||||
cp downloaded_r34.txt to_download_r34.txt
|
cp downloaded_r34.txt to_download_r34.txt
|
||||||
|
|
||||||
while [ 1 ]
|
while [ 1 ]
|
||||||
@ -9,6 +10,7 @@ do
|
|||||||
if [ ! -s to_download_r34.txt ]; then
|
if [ ! -s to_download_r34.txt ]; then
|
||||||
#success! just exit
|
#success! just exit
|
||||||
echo "file empty"
|
echo "file empty"
|
||||||
|
rm to_download_r34.txt
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo "file not empty"
|
echo "file not empty"
|
||||||
|
Reference in New Issue
Block a user