Update 'anime_scripts/jellyfin-namer-new.sh'
This commit is contained in:
parent
91a0f23e32
commit
032d2997d5
@ -1,12 +1,21 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#Check if requests is installed, and if not install it
|
#Check if requests is installed, and if not install it
|
||||||
python -c "import requests"
|
if [[ -f /tmp/request_install_lock ]]; then
|
||||||
if [[ "$?" == "1" ]]; then
|
while [[ -f /tmp/requests_install_lock ]]; do
|
||||||
apt update
|
sleep 1
|
||||||
apt install python-requests
|
done
|
||||||
|
else
|
||||||
|
python -c "import requests"
|
||||||
|
if [[ "$?" == "1" ]]; then
|
||||||
|
echo '' > /tmp/requests_install_lock
|
||||||
|
apt update
|
||||||
|
apt install python-requests
|
||||||
|
rm /tmp/requests_install_lock
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
#Gets the last part of the current directory
|
#Gets the last part of the current directory
|
||||||
function get_bottom_dir() {
|
function get_bottom_dir() {
|
||||||
IFS='/';
|
IFS='/';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user