title: rpm's %pretrans, %pre, etc. scriptlet section doesn't seem to support /bin/sh
body: <p>Does rpm's %pretrans, %pre, %post, etc. scriptlet sections not support all of /bin/sh? </p>
  
  <pre><code>%pretrans
  [ -n "$VERBOSE" ] &amp;&amp; echo "pretrans called with argument \`$1'" &gt;&amp;2
  [ -n "$VERBOSE" ] &amp;&amp; set -x
  
  %preun
  </code></pre>
  
  <p>The above gives the following error when the rpm is installed</p>
  
  <pre><code># rpm -i dist/mapr-bogus-0.0.0-1.noarch.rpm 
  error: %pretrans(mapr-bogus-0.0.0-1.noarch) scriptlet failed, exit status 1
  </code></pre>
  
  <p>If I add an "echo hello" under the conditional statements the rpm installs without errors.  Is there a rule regarding short-circuit conditionals in rpm scriptlets?</p>
  
  <pre><code>bash-4.1# rpmbuild --version
  RPM version 4.8.0
  bash-4.1# lsb_release -a
  LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
  Distributor ID: CentOS
  Description:    CentOS release 6.1 (Final)
  Release:    6.1
  Codename:   Final
  </code></pre>