morgan pushed to branch maint-14.0 at The Tor Project / Applications / tor-browser-build
Commits:
- 
5c1ddf37
by Nicolas Vigier at 2024-10-30T18:35:18+00:00
 
1 changed file:
Changes:
| ... | ... | @@ -55,12 +55,20 @@ cat << EOF > "$deploy_script" | 
| 55 | 55 |  #!/bin/bash
 | 
| 56 | 56 |  set -e
 | 
| 57 | 57 | |
| 58 | -echo "Deploying version $tbb_version"
 | 
|
| 59 | -echo "update_responses_commit: $update_responses_commit"
 | 
|
| 58 | +if test "\$#" -gt 1; then
 | 
|
| 59 | +  echo >&2 "Wrong number of arguments"
 | 
|
| 60 | +  exit 2
 | 
|
| 61 | +fi
 | 
|
| 62 | +  | 
|
| 63 | +commit=$update_responses_commit
 | 
|
| 64 | +test "\$#" -eq 1 && commit="\$1"
 | 
|
| 65 | +  | 
|
| 66 | +test "\$#" -eq 0 && echo "Deploying version $tbb_version"
 | 
|
| 67 | +echo "update_responses_commit: \$commit"
 | 
|
| 60 | 68 | |
| 61 | 69 |  cd "$update_dir"
 | 
| 62 | 70 |  git fetch
 | 
| 63 | -changed_files="\$(git diff --name-only HEAD $update_responses_commit)"
 | 
|
| 71 | +changed_files="\$(git diff --name-only HEAD \$commit)"
 | 
|
| 64 | 72 |  if echo "\$changed_files" | grep -qv "$tbb_version_type"
 | 
| 65 | 73 |  then
 | 
| 66 | 74 |    echo >&2 "Error: checking out new update_response_commit will changes"
 | 
| ... | ... | @@ -72,7 +80,7 @@ then | 
| 72 | 80 |    echo >&2 "See tor-browser-build#41168 for more details."
 | 
| 73 | 81 |    exit 1
 | 
| 74 | 82 |  fi
 | 
| 75 | -git checkout "$update_responses_commit"
 | 
|
| 83 | +git checkout "\$commit"
 | 
|
| 76 | 84 | |
| 77 | 85 |  static-update-component aus1.torproject.org
 | 
| 78 | 86 |  EOF
 |