projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f41227c
)
enhancement--not complaining about empty save dirs
author
Chris Koeritz
<fred@gruntose.com>
Tue, 23 Oct 2018 18:38:38 +0000
(14:38 -0400)
committer
Chris Koeritz
<fred@gruntose.com>
Tue, 23 Oct 2018 18:38:38 +0000
(14:38 -0400)
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
patch
|
blob
|
history
diff --git
a/scripts/customize/fred/scripts/games/gamesaver.sh
b/scripts/customize/fred/scripts/games/gamesaver.sh
index 2beec56d4ca214b77eb29e21dced2fc40c3ebc6b..9a8399d3ee1c0808a1693cc9acf22d08e49c8da1 100644
(file)
--- 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"