system-info clean up cache file in WSL too

This commit is contained in:
Kenneth Benzie 2022-12-10 17:35:19 +00:00
parent 1e2c00aa32
commit 6c3c7d7373

View File

@ -8,6 +8,10 @@ if [ ! -d $cache_dir ]; then
mkdir -p $cache_dir
fi
# Cleanup cache file when interrupted.
trap '[ -f $cache_file ] && rm $cache_file; exit' INT
trap '[ -f $cache_file ] && rm $cache_file; exit' TERM
if cat /proc/cpuinfo | grep -i intel > /dev/null; then
cpu_temp_sensor="/intelcpu/0/temperature/0"
elif cat /proc/cpuinfo | grep -i amd > /dev/null; then