Bash syntax question for LiveCD (setenv.sh)
b3nt at ukonline.co.uk
Fri Feb 10 03:41:31 PST 2006
Niki Kovacs wrote:
> I'm taking up LFS again after a few weeks break. I'm following the hint for
> the LiveCD. Among other things, I'd like setenv.sh to test for the presence
> of the /tools symlink before creating it. Like this:
> Does the symlink /tools exist?
> No --> create it.
> Now what would that look like in Bash syntax?
Why not just use the -f flag (force) and create it anyway?
ln -sfv $LFS/tools /
More information about the lfs-support