Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 82 for if (0.14 sec)

  1. src/main/assemblies/files/generate-thumbnail

    image_size=100x100
    target_file=$(echo "$url" | sed -e "s#^file:/*#/#g")
    
    check_command() {
      cmd=$1
      cmd_path=$(command -v "${cmd}")
      if [[ ! -e "${cmd_path}" ]] ; then
        echo "${cmd} does not exist."
        exit 1
      fi
    }
    
    if [[ x"$HOME" = "x/root" ]] ; then
      HOME=/var/lib/fess
    fi
    
    if [[ x"${cmd_type}" = "xmsoffice" ]] ; then
      check_command convert
      check_command pdftoppm
      check_command unoconv
    Shell Script
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Mon Jun 12 13:13:28 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  2. common/scripts/tracing.sh

    # limitations under the License.
    
    # Usage: tracing::extract_prow_trace.
    # If running in a prow job, this sets the parent trace to the same value Prow tracing will use, as defined in https://github.com/kubernetes/test-infra/issues/30010
    function tracing::extract_prow_trace() {
      if [[ "${PROW_JOB_ID:-}" != "" ]]; then
        local trace
        trace="$(<<< "$PROW_JOB_ID" tr -d '\-')"
        local span
    Shell Script
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jul 28 15:25:47 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  3. docs/site-replication/run-ssec-object-replication.sh

    count1=$(./mc ls minio1/test-bucket/plainfile --insecure | wc -l)
    if [ "${count1}" -ne 1 ]; then
    	echo "BUG: object minio1/test-bucket/plainfile not found"
    	exit_1
    fi
    count2=$(./mc ls minio1/test-bucket/encrypted --insecure | wc -l)
    if [ "${count2}" -ne 1 ]; then
    	echo "BUG: object minio1/test-bucket/encrypted not found"
    	exit_1
    fi
    count3=$(./mc ls minio1/test-bucket/defpartsize --insecure | wc -l)
    if [ "${count3}" -ne 1 ]; then
    Shell Script
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 08:43:09 GMT 2024
    - 9.7K bytes
    - Viewed (1)
  4. bin/update_crds.sh

    # first check if there's a replace: e.g. replace istio.io/api => github.com/USER/istioapi v0.0.0-<timestamp>-<SHA>
    SHA=$(grep "istio.io/api" go.mod | grep "^replace" | awk -F "-" '{print $NF}')
    if [ -n "${SHA}" ]; then
      REPO=$(grep "istio.io/api" go.mod | grep "^replace" | awk '{print $4}')
    else
      SHA=$(grep "istio.io/api" go.mod | head -n1 | awk '{ print $2 }')
    Shell Script
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Apr 22 14:28:27 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  5. docs/bucket/replication/setup_2site_existing_replication.sh

    ./mc ls -r --versions siteb/bucket-version/ >/tmp/siteb_dirs.txt
    
    out=$(diff -qpruN /tmp/sitea_dirs.txt /tmp/siteb_dirs.txt)
    ret=$?
    if [ $ret -ne 0 ]; then
    	echo "BUG: expected no 'diff' after replication: $out"
    	exit 1
    fi
    
    ## check if we don't create delete markers on the directory objects, its always permanent delete.
    ./mc mb sitea/bucket-version/directory/
    
    sleep 2s
    
    Shell Script
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  6. ci/official/containers/linux_arm64/build.sh

    }
    
    # Move into the directory of the script
    cd "$(dirname "$0")"
    
    if is_continuous_or_release || [[ -z "$KOKORO_BUILD_ID" ]]; then
      # A continuous job is the only one to publish to latest
      TAG="latest-multi-python"
    else
      # If it is a change, grab a good tag for iterative builds
      if [[ -z "${KOKORO_GITHUB_PULL_REQUEST_NUMBER}" ]]; then
    Shell Script
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Fri Nov 03 13:38:49 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  7. apache-maven/src/assembly/shared/validate

    # -----------------------------------------------------------------------------
    
    if [ -z "$MAVEN_SKIP_RC" ] ; then
    
      if [ -f /usr/local/etc/mavenrc ] ; then
        . /usr/local/etc/mavenrc
      fi
    
      if [ -f /etc/mavenrc ] ; then
        . /etc/mavenrc
      fi
    
      if [ -f "$HOME/.mavenrc" ] ; then
        . "$HOME/.mavenrc"
      fi
    
    fi
    
    Shell Script
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Dec 21 09:29:19 GMT 2021
    - 1.7K bytes
    - Viewed (0)
  8. common/scripts/fix_copyright_banner.sh

    # limitations under the License.
    
    set -e
    
    WD=$(dirname "$0")
    WD=$(cd "$WD"; pwd)
    
    for fn in "$@"; do
      if ! grep -L -q -e "Apache License, Version 2" -e "Copyright" "${fn}"; then
        if [[ "${fn}" == *.go || "${fn}" == *.rs ]]; then
          newfile=$(cat "${WD}/copyright-banner-go.txt" "${fn}")
          echo "${newfile}" > "${fn}"
          echo "Fixing license: ${fn}"
        else
    Shell Script
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Nov 17 04:35:57 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  9. ci/official/upload.sh

    # "gsutil rsync -d" is "sync and delete files from destination if not present in source"
    
    DOWNLOADS="$(mktemp -d)"
    mkdir -p "$DOWNLOADS"
    gsutil -m rsync -r "$TFCI_ARTIFACT_STAGING_GCS_URI" "$DOWNLOADS"
    ls "$DOWNLOADS"
    
    # Upload all build artifacts to e.g. gs://tensorflow/versions/2.16.0-rc1 (releases) or
    # gs://tensorflow/nightly/2.16.0-dev20240105 (nightly), overwriting previous values.
    if [[ "$TFCI_ARTIFACT_FINAL_GCS_ENABLE" == 1 ]]; then
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jan 24 20:52:12 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  10. common/scripts/check_clean_repo.sh

    #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    #   See the License for the specific language governing permissions and
    #   limitations under the License.
    
    function write_patch_file() {
        if [ -z "${ARTIFACTS}" ]; then
          return 0
        fi
    
        PATCH_NAME="check-clean-repo-diff.patch"
        PATCH_OUT="${ARTIFACTS}/${PATCH_NAME}"
        git diff > "${PATCH_OUT}"
    
    Shell Script
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Jan 11 22:57:12 GMT 2023
    - 1.7K bytes
    - Viewed (0)
Back to top