]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
run-*make-check.sh: Make DRY_RUN actually mean a dry run 11074/head
authorBrad Hubbard <bhubbard@redhat.com>
Wed, 14 Sep 2016 07:13:47 +0000 (17:13 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Wed, 14 Sep 2016 07:15:44 +0000 (17:15 +1000)
DRY_RUN does not currently do an actual dry run as it actually runs an install
command.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
run-cmake-check.sh
run-make-check.sh

index 8f95eacd68cf1f43fe8ca0992b774a7c33df13b1..1446434abb0e5b56b3dfe3cb6d3f3c3090453f9b 100755 (executable)
@@ -38,7 +38,7 @@ function run() {
     type apt-get > /dev/null 2>&1 && install_cmd="apt-get install -y"
     type zypper > /dev/null 2>&1 && install_cmd="zypper --gpg-auto-import-keys --non-interactive install"
     if [ -n "$install_cmd" ]; then
-        sudo $install_cmd ccache jq
+        $DRY_RUN sudo $install_cmd ccache jq
     else
         echo "WARNING: Don't know how to install packages" >&2
     fi
index 05230adfd5e35925bdcdcd49ac3b6b828e388e3a..ce860c3e5eea2e7cf38ab755e69e7a729c5a3e2a 100755 (executable)
@@ -56,7 +56,7 @@ function run() {
     type apt-get > /dev/null 2>&1 && install_cmd="apt-get install -y"
     type zypper > /dev/null 2>&1 && install_cmd="zypper --gpg-auto-import-keys --non-interactive install"
     if [ -n "$install_cmd" ]; then
-        sudo $install_cmd ccache jq
+        $DRY_RUN sudo $install_cmd ccache jq
     else
         echo "WARNING: Don't know how to install packages" >&2
     fi