From fcb2b02eacab21c08d04383bffad2052508493a9 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" <benie@infektor.net> Date: Sun, 22 May 2022 10:32:33 +0100 Subject: [PATCH] Create system-info cache directory in WSL --- system-info/system-info-WSL.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system-info/system-info-WSL.sh b/system-info/system-info-WSL.sh index 5914038..f6a901a 100755 --- a/system-info/system-info-WSL.sh +++ b/system-info/system-info-WSL.sh @@ -3,6 +3,11 @@ cache_dir=~/.cache/tmux cache_file=$cache_dir/system-info +# Make sure the output directory exists. +if [ ! -d $cache_dir ]; then + mkdir -p $cache_dir +fi + while true; do # Assumes OpenHardwareMonitor is has the Remote Web Server enabled on port # 8085 of the Windows host. In WSL2 the Windows host IP is accessible using