Skip to content

Commit

Permalink
Fix missing dir errors on workshop status
Browse files Browse the repository at this point in the history
Fixes #72
Refs #70
  • Loading branch information
bviktor committed Mar 4, 2023
1 parent 51f1442 commit ed0041a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion share/killinuxfloor
Original file line number Diff line number Diff line change
Expand Up @@ -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=()

Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit ed0041a

Please sign in to comment.