adium 3692:9adab6410a8c: `basename` seems to not be happy with s...

commits at adium.im commits at adium.im
Sun Feb 27 14:08:44 UTC 2011


details:	http://hg.adium.im/adium/rev/9adab6410a8c
revision:	3692:9adab6410a8c
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Sun Feb 27 15:07:25 2011 +0100

`basename` seems to not be happy with spaces.
(transplanted from 45f9510fb001c9d8e4d47fbf9744066a63c24ae3)

diffs (15 lines):

diff -r b795885ecf64 -r 9adab6410a8c Utilities/tosupportpage.sh
--- a/Utilities/tosupportpage.sh	Sun Feb 27 14:36:09 2011 +0100
+++ b/Utilities/tosupportpage.sh	Sun Feb 27 15:07:25 2011 +0100
@@ -52,7 +52,7 @@
 			 > "$1/pgs/$(basename $file)"
 done
 
-
-for file in ../AdiumHelp/gfx/*; do
-cp "$file" "$1/gfx/$(basename $file)"
+find ../AdiumHelp/gfx/ -type f|while read file
+do
+cp -v "$file" "$1/gfx/${file##*/}"
 done
\ No newline at end of file




More information about the commits mailing list