From 39d2d6eb71e6d651d73b661523f08eb221345910 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 23 Oct 2018 14:38:38 -0400 Subject: [PATCH] enhancement--not complaining about empty save dirs now you don't get nastygrams if a game's save dir exists but there are no save files to save; it just skips that one. play it some more and you'll see the saves show up again. --- scripts/customize/fred/scripts/games/gamesaver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/customize/fred/scripts/games/gamesaver.sh b/scripts/customize/fred/scripts/games/gamesaver.sh index 2beec56d..9a8399d3 100644 --- a/scripts/customize/fred/scripts/games/gamesaver.sh +++ b/scripts/customize/fred/scripts/games/gamesaver.sh @@ -30,7 +30,7 @@ function copyem() source_dir="$1"; shift out_dir="$1"; shift - if [ -d "$source_dir" ]; then + if [ -d "$source_dir" -a $(ls "$source_dir" 2>/dev/null | wc -c) != 0 ]; then echo $game_name if [ ! -d "$out_dir" ]; then mkdir -p "$out_dir" -- 2.34.1