[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash syntax




On Tue, Jun 20, 2000 at 10:15:41AM -0500, Charles Menzes wrote:
> Can someone tell me if this is just incorrect syntax that is causing this
> not to work:

yes.

> #!/bin/bash
> USER="rufus"
> HOMEDIR="/home/test/rufus"
>         if [ -z $HOMEDIR ]; then
>                 mkdir $HOMEDIR
>                 chmod 755 $HOMEDIR
>                 chown $HOMEDIR $USER
>         fi
> #
> #

chown $USER $HOMEDIR

(I'd also have used HOMEDIR="/home/test/$USER", but that's just me)

--Danny

--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.