[ -d "${PROFILE_DEST_DIR}" ] && { echo "Aborting, '${PROFILE_DEST_DIR}' already exists." 1>&2; exit 1; }
-pushd "$WEB_ROOT"
+pushd "$WEB_ROOT" > /dev/null
CURRENT_PROFILE="$($DRUSH php-eval "echo drupal_get_profile();")"
CURRENT_PROFILE_PATH="$($DRUSH php-eval "echo drupal_get_path('profile', '${CURRENT_PROFILE}');")"
--no-interaction
# Copy private code and data from the currently installed profile
-pushd "$CURRENT_PROFILE_PATH"
+pushd "$CURRENT_PROFILE_PATH" > /dev/null
find . -maxdepth 1 -type d ! -name "tests" -printf "%P\n" |
while read -r dir;
fi
done
-popd
+popd > /dev/null
# Basically do what's suggested in the "Configuration" section here:
# https://www.drupal.org/docs/8/creating-distributions/how-to-write-a-drupal-8-installation-profile
echo "Check that the code of the created profile refers to the new profile name."
fi
-popd
+popd > /dev/null