X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcustomize%2Ffred%2Fscripts%2Fgames%2Fgamesaver.sh;h=9a8399d3ee1c0808a1693cc9acf22d08e49c8da1;hb=39d2d6eb71e6d651d73b661523f08eb221345910;hp=2beec56d4ca214b77eb29e21dced2fc40c3ebc6b;hpb=f41227cc035ed897f140af2fa73acd517d0d856e;p=feisty_meow.git 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"