dup: Fixed globbing support in include and exclude options (Debian bug #338796)
authorintrigeri <intrigeri@758a04ac-41e6-0310-8a23-8373a73cc35d>
Tue, 29 Nov 2005 11:30:06 +0000 (11:30 +0000)
committerintrigeri <intrigeri@758a04ac-41e6-0310-8a23-8373a73cc35d>
Tue, 29 Nov 2005 11:30:06 +0000 (11:30 +0000)
git-svn-id: http://code.autistici.org/svn/backupninja/trunk@256 758a04ac-41e6-0310-8a23-8373a73cc35d

handlers/dup

index 8d38cfc5996f212a5b1840de7e939ac3c31966a3..79be2fc61fd5f13c078c746fbdd3b63ef43fb4cb 100644 (file)
@@ -105,13 +105,13 @@ execstr_clientpart="/"
 # excludes
 for i in $exclude; do
        str="${i//__star__/*}"
-       execstr="${execstr}--exclude $str "
+       execstr="${execstr}--exclude '$str' "
 done
        
 # includes 
 for i in $include; do
        str="${i//__star__/*}"
-       execstr="${execstr}--include $str "
+       execstr="${execstr}--include '$str' "
 done
 
 # vsincludes