File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ fahrenheit=$1
88location=$2
99
1010LOCKFILE=/tmp/.dracula-tmux-weather.lock
11+ DATAFILE=/tmp/.dracula-tmux-data
1112
1213ensure_single_process ()
1314{
@@ -22,15 +23,15 @@ main()
2223
2324 current_dir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
2425
25- if [ ! -f $current_dir /../data/weather.txt ]; then
26- printf " Loading..." > $current_dir /../data/weather.txt
26+ if [ ! -f $DATAFILE ]; then
27+ printf " Loading..." > $DATAFILE
2728 fi
2829
29- $current_dir /weather.sh > $current_dir /../data/weather.txt
30+ $current_dir /weather.sh > $DATAFILE
3031
3132 while tmux has-session & > /dev/null
3233 do
33- $current_dir /weather.sh $fahrenheit $location > $current_dir /../data/weather.txt
34+ $current_dir /weather.sh $fahrenheit $location > $DATAFILE
3435 if tmux has-session & > /dev/null
3536 then
3637 sleep 1200
You can’t perform that action at this time.
0 commit comments