aboutsummaryrefslogtreecommitdiff
path: root/linux/home/.scripts/cryptonotify
blob: 47883c365cdf922ade9fb949635a053babf36798 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
source cryptocheck
Output=
for file in ~/.cache/crypto/*
do
	if [ ! -z "$Output" ]; then
		if [ ! $(basename $file) = "time" ]; then
			Output="$Output\n$(cat $file)"
		fi
	else
		if [ ! $(basename $file) = "time" ]; then
			Output="$Output$(cat $file)"
		fi
	fi

done

Output="$Output\n$(cat ~/.cache/crypto/time)"
notify-send "Crypto Prices" "$Output"