r7905: this should fix installswat on FreeBSD. Thanks to nodie for testing this for me
authorAndrew Tridgell <tridge@samba.org>
Sat, 25 Jun 2005 14:12:30 +0000 (14:12 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:47 +0000 (13:18 -0500)
(This used to be commit 858ed1c463a0e60f00f94766c43b5bf7add9c5f3)

source4/script/installswat.sh

index 403abc310deb7e0c7a704c1977c38e9f91d72602..ce0e962babbcdcf063563213d6978ba930b2ea87 100644 (file)
@@ -11,7 +11,7 @@ installdir() {
     dir=$1
     ext=$2
     mkdir -p $SWATDIR/$dir || exit 1
-    for f in $dir/*.$ext; do
+    for f in `ls $dir/*.$ext`; do
        echo Installing $f
        cp $f $SWATDIR/$dir/ || exit 1
        chmod 0644 $SWATDIR/$f || exit 1