mirror of
https://github.com/simon987/music-graph-scripts.git
synced 2025-12-17 08:39:03 +00:00
More work on DB, script runners
This commit is contained in:
20
task_runner.sh
Executable file
20
task_runner.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [[ -z "${LASTFM_APIKEY}" ]]; then
|
||||
echo "LASTFM_APIKEY is not set"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [[ -z "${SPOTIFY_CLIENTID}" ]]; then
|
||||
echo "SPOTIFY_CLIENTID is not set"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [[ -z "${SPOTIFY_SECRET}" ]]; then
|
||||
echo "SPOTIFY_SECRET is not set"
|
||||
exit
|
||||
fi
|
||||
|
||||
while true; do
|
||||
/usr/bin/time python "$1" --count 50 &>> "$1".log
|
||||
done
|
||||
Reference in New Issue
Block a user