On 14/07/10 01:20, Dan McGhee wrote:
>
> BUILD=$HOME/$package-build
> cd $BUILD
> #Double sanity check--visual and logical
> pwd
> if [ $(pwd) -ne $BUILD ]
> echo Check the build directory creation
> exit Status 1
>
It seems that you're trying to test whether $BUILD exists after you've 
cd'd into it. I would do something like:

[ -d $BUILD ] || mkdir -p $BUILD
cd $BUILD

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to