]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
Fixing postinstall-scripts/init-puppet
authorFrank Brehm <frank.brehm@pixelpark.com>
Mon, 23 Mar 2020 14:06:21 +0000 (15:06 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Mon, 23 Mar 2020 14:06:21 +0000 (15:06 +0100)
postinstall-scripts/init-puppet

index c3defee30ecd72a8c9944fdb720be88264adc0da..1e7dddb4ee4f20d15798bb8c1a49d5de1b922011 100755 (executable)
@@ -461,6 +461,10 @@ empty_oracle_repo_files() {
     local -a stems=("oracle-linux-ol7" "uek-ol7" "virt-ol7" "public-yum-ol7")
     local cleaned_old_repo="n"
     local stem=
+    local verbose_opt=
+    if [[ "${VERBOSE}" == "y" ]] ; then
+        verbose_opt=" --verbose"
+    fi
 
     for stem in "${stems[@]}" ; do
         if empty_repo_file "${stem}" ; then