[Scummvm-git-logs] scummvm master -> 6cedf5e9f2acb696462bc235e1636d74e00117b6

sev- sev at scummvm.org
Sat Jan 4 23:17:58 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
6cedf5e9f2 DEVTOOLS: Make encode-macbinray script more robust


Commit: 6cedf5e9f2acb696462bc235e1636d74e00117b6
    https://github.com/scummvm/scummvm/commit/6cedf5e9f2acb696462bc235e1636d74e00117b6
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-01-05T00:17:30+01:00

Commit Message:
DEVTOOLS: Make encode-macbinray script more robust

Changed paths:
    devtools/encode-macbinary.sh


diff --git a/devtools/encode-macbinary.sh b/devtools/encode-macbinary.sh
index 235dd86..0655fc9 100755
--- a/devtools/encode-macbinary.sh
+++ b/devtools/encode-macbinary.sh
@@ -7,10 +7,12 @@ for i in *
 do
 	if test -d "$i" ; then
 		cd "$i"
-		bash $0 "$1/$i"
+		if [ "$(ls -A .)" ] ; then # directory is not empty
+			bash $0 "$1/$i"
+		fi
 		cd ..
 	else
-		echo -n $1/$i ; echo -ne "... \r"
+		echo -ne "$1/$i...                 \r"
 		macbinary encode "$i"
 		touch -r "$i" "$i.bin"
 		mv "$i.bin" "$i"
@@ -18,6 +20,6 @@ do
 done
 
 # on the top level we want to print a new line
-if test -z $1 ; then
+if test -z "$1" ; then
 	echo
 fi




More information about the Scummvm-git-logs mailing list