summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/g-i-installation.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh
index a8bd8605..68d9e396 100755
--- a/bin/g-i-installation.sh
+++ b/bin/g-i-installation.sh
@@ -105,11 +105,11 @@ cleanup_all() {
rm "snapshot_??????.ppm"
# rename .bak files back to .ppm
if find . -name "*.ppm.bak" > /dev/null ; then
- for i in "*.ppm.bak" ; do
+ for i in $(find * -name "*.ppm.bak") ; do
mv $i $(echo $i | sed -s 's#.ppm.bak#.ppm#')
done
# convert to png (less space and better supported in browsers)
- for i in "*.ppm" ; do
+ for i in $(find * -name "*.ppm") ; do
convert $CONVERTOPTS $i ${i%.ppm}.png
rm $i
done