diff options
| author | Eugene Sandulenko | 2020-01-04 23:19:00 +0100 | 
|---|---|---|
| committer | Eugene Sandulenko | 2020-01-05 00:17:30 +0100 | 
| commit | 6cedf5e9f2acb696462bc235e1636d74e00117b6 (patch) | |
| tree | 491d5919a4dd56d7d04a6c857d35e27a149a9880 | |
| parent | a1b11d9540b1b2e210b3de7b75dd77ecbdf3c8e3 (diff) | |
| download | scummvm-rg350-6cedf5e9f2acb696462bc235e1636d74e00117b6.tar.gz scummvm-rg350-6cedf5e9f2acb696462bc235e1636d74e00117b6.tar.bz2 scummvm-rg350-6cedf5e9f2acb696462bc235e1636d74e00117b6.zip | |
DEVTOOLS: Make encode-macbinray script more robust
| -rwxr-xr-x | devtools/encode-macbinary.sh | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/devtools/encode-macbinary.sh b/devtools/encode-macbinary.sh index 235dd860a4..0655fc9242 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 | 
