-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 30 April 2002 12:38 am, christopher j bottaro wrote:
> thanks to both of yall for the reply, but it didn't work.  i
> copied/pasted into a file, changed the EXCLUDE_LIST to something
> meaningful on my system, but it doesn't work, it just prints out all
> the dirs in the dir that i'm in.

What are you trying to do? The script, as written, will only look in the 
current directory. Also, in all cases, if the trailing / isn't included 
in the exclude list directories, the script will fail.

> i got another bash question though.  i wanna execute the following
> sequence of commands (what is this called, so i can search for it on
> the internet?): ./configure --prefix=$1 && make && make install
> but i want to exit if any of them fail.  i figured the following would
> work but it doesn't:
> if [ ! ./configure --prefix=$1 && make && make install ] ; then
>       echo "an error occured"
>       exit #i don't know the command to exit a bash script
> fi

./configure --prefix=$1 && make && make install
Should work within a script, exiting if something fails. (as long as the 
script and configure are in the same directory)

If you want output as well:

if ./configure --prefix=$1 && make && make install ; then : ; else
echo "an error occured"
exit 1
fi
echo "Success!"
exit 0

Hope that helps,
- -- 
- -Michael

pgp key:  http://www.tuxfan.homeip.net:8080/gpgkey.txt
Red Hat Linux 7.2 in 8M of RAM: http://www.rule-project.org/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjzOJ9YACgkQn/07WoAb/StB5wCfRbsM4TT//gkY1loCD9bDflRG
ueQAnjSfoZ+xc50sXdkpiPfKgoNH9F5W
=ZgD1
-----END PGP SIGNATURE-----



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to