Re: Question about exception

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

 



MARG wrote:

> I'm making this BASH script to install a ful web system in Linux:

> I'd like to abort the whole script, if some package compile aborts with
> an error.
> For example, if there is an error compiling MySQL, i don't want the
> script to follow to PostgreSQL.
> I want it to abort with an error.
> 
> How can i do this ?

( ./configure ... && make && make install ) || exit 1

-- 
Glynn Clements <glynn@xxxxxxxxxxxxxxxxxx>
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux