tructus
This commit is contained in:
parent
8401e37a4d
commit
7e3da16262
1 changed files with 5 additions and 5 deletions
|
@ -7,11 +7,11 @@ main()
|
||||||
while tmux has-session &> /dev/null
|
while tmux has-session &> /dev/null
|
||||||
do
|
do
|
||||||
./weather.sh > ~/.tmux/plugins/tmux-dracula/weather.txt
|
./weather.sh > ~/.tmux/plugins/tmux-dracula/weather.txt
|
||||||
error=$(cat ~/.tmux/plugins/tmux-dracula/weather.txt | sed -n 2p)
|
# error=$(cat ~/.tmux/plugins/tmux-dracula/weather.txt | sed -n 2p)
|
||||||
if [ $error = ' "error": {' ]; then
|
# if [ $error = ' "error": {' ]; then
|
||||||
echo "Too Many Requests" > ~/.tmux/plugins/tmux-dracula/weather.txt
|
# echo "Too Many Requests" > ~/.tmux/plugins/tmux-dracula/weather.txt
|
||||||
break
|
# break
|
||||||
fi
|
# fi
|
||||||
sleep 1000
|
sleep 1000
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue