On Thu, 25 Apr 2002, Speeddymon wrote:
- if [ -d "/usr/lib/menu" -a "$mode" = "menu" -a ! `whoami` = "root" ]
- then
[...]
- elif [ `whoami` = "root" ]
- then
- mdk_entry >> "/usr/lib/menu/wine"
- fi
Sorry, I haven't been following this but isn't the elif condition redundant?
Also, AFAIK although its unusual, there's no reason an account name cannot have a space in it, so `whoami` should be "`whoami`"
[spent too much time debugging strings in scripts ;^]
---- Paul Millar