system-info clean up cache file in WSL too
This commit is contained in:
parent
1e2c00aa32
commit
6c3c7d7373
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user