From 3738a1646bb4a43d7a2d047e77f2031a06e9f112 Mon Sep 17 00:00:00 2001 From: Viktor Berke Date: Sat, 4 Mar 2023 21:25:27 +0100 Subject: [PATCH] Fix missing dir errors on workshop status Fixes #72 Refs #70 --- share/killinuxfloor | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/killinuxfloor b/share/killinuxfloor index bf11c4e..f3e4cd7 100755 --- a/share/killinuxfloor +++ b/share/killinuxfloor @@ -768,7 +768,7 @@ function check_workshop () #echo '(Legend: ID, name, download state, cache state, web)' # Find items that are present but not subscribed to anymore - if [ "${1}" -eq 0 ] + if [ "${1}" -eq 0 ] && [ -d "${WORKSHOP_CONTENT_DIR}" ] then UNKNOWN_WORKSHOP=() @@ -813,7 +813,10 @@ function check_workshop () echo_link "https://steamcommunity.com/sharedfiles/filedetails/?id=${item}" "🌐" true done fi + fi + if [ "${1}" -eq 0 ] && [ -d "${CACHE_DIR}" ] + then UNKNOWN_CACHE=() for dl_item in $(find ${CACHE_DIR} -mindepth 1 -maxdepth 1 -type d -printf '%f\n')