morgan pushed to branch maint-13.5 at The Tor Project / Applications / tor-browser-build

Commits:

1 changed file:

Changes:

  • tools/signing/upload-update_responses-to-staticiforme
    ... ... @@ -58,12 +58,20 @@ cat << EOF > "$deploy_script"
    58 58
     #!/bin/bash
    
    59 59
     set -e
    
    60 60
     
    
    61
    -echo "Deploying version $tbb_version"
    
    62
    -echo "update_responses_commit: $update_responses_commit"
    
    61
    +if test "\$#" -gt 1; then
    
    62
    +  echo >&2 "Wrong number of arguments"
    
    63
    +  exit 2
    
    64
    +fi
    
    65
    +
    
    66
    +commit=$update_responses_commit
    
    67
    +test "\$#" -eq 1 && commit="\$1"
    
    68
    +
    
    69
    +test "\$#" -eq 0 && echo "Deploying version $tbb_version"
    
    70
    +echo "update_responses_commit: \$commit"
    
    63 71
     
    
    64 72
     cd "$update_dir"
    
    65 73
     git fetch
    
    66
    -changed_files="\$(git diff --name-only HEAD $update_responses_commit)"
    
    74
    +changed_files="\$(git diff --name-only HEAD \$commit)"
    
    67 75
     if echo "\$changed_files" | grep -qv "$tbb_version_type"
    
    68 76
     then
    
    69 77
       echo >&2 "Error: checking out new update_response_commit will changes"
    
    ... ... @@ -75,7 +83,7 @@ then
    75 83
       echo >&2 "See tor-browser-build#41168 for more details."
    
    76 84
       exit 1
    
    77 85
     fi
    
    78
    -git checkout "$update_responses_commit"
    
    86
    +git checkout "\$commit"
    
    79 87
     
    
    80 88
     static-update-component aus1.torproject.org
    
    81 89
     EOF