diff options
-rwxr-xr-x | source3/script/installswat.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/source3/script/installswat.sh b/source3/script/installswat.sh index be0cdf3eef..534c2d761f 100755 --- a/source3/script/installswat.sh +++ b/source3/script/installswat.sh @@ -64,12 +64,15 @@ done # Install html documentation -for f in $SRCDIR../docs/htmldocs/*.html; do - FNAME=$SWATDIR/help/`basename $f` - echo $FNAME - cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges? - chmod 0644 $FNAME -done +if [ -d $SRCDIR../docs/htmldocs/ ]; then + + for f in $SRCDIR../docs/htmldocs/*.html; do + FNAME=$SWATDIR/help/`basename $f` + echo $FNAME + cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges? + chmod 0644 $FNAME + done +fi # Install Using Samba book (but only if it is there) |