Skip to Content.
Sympa Menu

sm-commit - Re: [SM-Commit] GIT changes to master grimoire by Treeve Jelbert (ece35376414ad22a5b94569993504654aff85842)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Jaka Kranjc <smgl AT lynxlynx.info>
  • To: sm-commit AT lists.ibiblio.org
  • Cc: treeve AT sourcemage.org
  • Subject: Re: [SM-Commit] GIT changes to master grimoire by Treeve Jelbert (ece35376414ad22a5b94569993504654aff85842)
  • Date: Mon, 13 Apr 2009 12:29:17 +0200

On Monday 13 of April 2009 11:39:39 Treeve Jelbert wrote:
> --- /dev/null
> +++ b/database/virtuoso/PREPARE
> @@ -0,0 +1,6 @@
> +# check for running server
> + (ps -A | grep virtuoso) &&
> + message ${PROBLEM_COLOR}please stop the virtuoso server and try again\
> + ${DEFAULT_COLOR} &&
> + return 1
> +
Wouldn't this always fail? If grep finds a match, the chain will continue and
return 1. If it doesn't find a match, the chain will break and the return
status will be implicitly 1 again.

btw, you can also use the -q option to grep to suppres its output.

LP
--
We cannot command nature except by obeying her. --Sir Francis Bacon
Have a sourcerous day! www.sourcemage.org

Attachment: signature.asc
Description: This is a digitally signed message part.




Archive powered by MHonArc 2.6.24.

Top of Page