Commit 965f25d7 authored by Gibbs, Ian's avatar Gibbs, Ian
Browse files

bugfix, test for exit code

parent 253b1d37
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -344,8 +344,7 @@ job_publish_release:
    - echo ${fn_rpm}
    - echo ${fn_srpm}
    - |
      ssh xv6@packages.sns.gov "test -f /var/www/html/distros/rhel/9/sns/RPMS/noarch/${fn_rpm}" ; rc="$?"
      if [[ ${rc} -eq 0 ]]; then
      if ssh xv6@packages.sns.gov "test -f /var/www/html/distros/rhel/9/sns/RPMS/noarch/${fn_rpm}"; then
        echo .
        echo .
        echo "nsd-app-wrap publish >> [Error] << destination already exists: packages.sns.gov:/var/www/html/distros/rhel/9/sns/RPMS/noarch/${fn_rpm}"
@@ -355,8 +354,7 @@ job_publish_release:
      fi

    - |
      ssh xv6@packages.sns.gov "test -f /var/www/html/distros/rhel/9/sns/SRPMS/${fn_srpm}" ; rc="$?"
      if [[ ${rc} -eq 0 ]]; then
      if ssh xv6@packages.sns.gov "test -f /var/www/html/distros/rhel/9/sns/SRPMS/${fn_srpm}"; then
        echo .
        echo .
        echo "nsd-app-wrap publish >> [Error] << destination already exists: packages.sns.gov:/var/www/html/distros/rhel/9/sns/SRPMS/${fn_srpm}"