From 2d4fc4542965f672470fd08c86a09b10561f5851 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Sat, 11 Feb 2017 22:40:10 +0000 Subject: [PATCH] nightly-tarball scripts: fix quoting Signed-off-by: Jeff Squyres --- contrib/build-server/hwloc-nightly-tarball.sh | 6 +++--- contrib/build-server/openmpi-nightly-tarball.sh | 6 +++--- contrib/build-server/pmix-nightly-tarball.sh | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/contrib/build-server/hwloc-nightly-tarball.sh b/contrib/build-server/hwloc-nightly-tarball.sh index c02498b1ab..09b942f63f 100755 --- a/contrib/build-server/hwloc-nightly-tarball.sh +++ b/contrib/build-server/hwloc-nightly-tarball.sh @@ -148,7 +148,7 @@ for branch in $branches; do # tell the web server to cleanup old nightly tarballs run_command ssh -p 2222 \ $output_ssh_target \ - "git/ompi/contrib/build-server/remove-old.pl 7 public_html/software/hwloc/nightly/$branch" + \"git/ompi/contrib/build-server/remove-old.pl 7 public_html/software/hwloc/nightly/$branch\" # upload the new ones run_command scp -P 2222 \ $outputroot/$branch/hwloc-$latest_snapshot.tar.* \ @@ -159,10 +159,10 @@ for branch in $branches; do # direct the web server to regenerate the checksums run_command ssh -p 2222 \ $output_ssh_target \ - "cd public_html/software/hwloc/nightly/$branch && md5sum hwloc* > md5sums.txt" + \"cd public_html/software/hwloc/nightly/$branch \&\& md5sum hwloc\* \> md5sums.txt\" run_command ssh -p 2222 \ $output_ssh_target \ - "cd public_html/software/hwloc/nightly/$branch && sha1sum hwloc* > sha1sums.txt" + \"cd public_html/software/hwloc/nightly/$branch \&\& sha1sum hwloc\* \> sha1sums.txt\" fi # Failed builds are not removed. But if a human forgets to come diff --git a/contrib/build-server/openmpi-nightly-tarball.sh b/contrib/build-server/openmpi-nightly-tarball.sh index 5bcd177bf9..67e10cebea 100755 --- a/contrib/build-server/openmpi-nightly-tarball.sh +++ b/contrib/build-server/openmpi-nightly-tarball.sh @@ -151,7 +151,7 @@ for branch in $branches; do # tell the web server to cleanup old nightly tarballs run_command ssh -p 2222 \ $output_ssh_target \ - "git/ompi/contrib/build-server/remove-old.pl 7 public_html/nightly/$branch" + \"git/ompi/contrib/build-server/remove-old.pl 7 public_html/nightly/$branch\" # upload the new ones run_command scp -P 2222 \ $outputroot/$branch/openmpi-$latest_snapshot.tar.* \ @@ -162,10 +162,10 @@ for branch in $branches; do # direct the web server to regenerate the checksums run_command ssh -p 2222 \ $output_ssh_target \ - "cd public_html/nightly/$branch && md5sum openmpi* > md5sums.txt" + \"cd public_html/nightly/$branch \&\& md5sum openmpi\* \> md5sums.txt\" run_command ssh -p 2222 \ $output_ssh_target \ - "cd public_html/nightly/$branch && sha1sum openmpi* > sha1sums.txt" + \"cd public_html/nightly/$branch \&\& sha1sum openmpi\* \> sha1sums.txt\" fi # Failed builds are not removed. But if a human forgets to come diff --git a/contrib/build-server/pmix-nightly-tarball.sh b/contrib/build-server/pmix-nightly-tarball.sh index 275aead9a4..1de983cdee 100755 --- a/contrib/build-server/pmix-nightly-tarball.sh +++ b/contrib/build-server/pmix-nightly-tarball.sh @@ -157,7 +157,7 @@ for branch in $branches; do # tell the web server to cleanup old nightly tarballs run_command ssh -p 2222 \ $output_ssh_target \ - "git/ompi/contrib/build-server/remove-old.pl 7 public_html/software/pmix/nightly/$branch" + \"git/ompi/contrib/build-server/remove-old.pl 7 public_html/software/pmix/nightly/$branch\" # upload the new ones run_command scp -P 2222 \ $outputroot/$branch/pmix-$latest_snapshot.tar.* \ @@ -168,10 +168,10 @@ for branch in $branches; do # direct the web server to regenerate the checksums run_command ssh -p 2222 \ $output_ssh_target \ - "cd public_html/software/pmix/nightly/$branch && md5sum pmix* > md5sums.txt" + \"cd public_html/software/pmix/nightly/$branch \&\& md5sum pmix\* \> md5sums.txt\" run_command ssh -p 2222 \ $output_ssh_target \ - "cd public_html/software/pmix/nightly/$branch && sha1sum pmix* > sha1sums.txt" + \"cd public_html/software/pmix/nightly/$branch \&\& sha1sum pmix\* \> sha1sums.txt\" fi # Failed builds are not removed. But if a human forgets to come