Skip to content

Commit c33ee8d

Browse files
committed
fix: actually pass the authorization header
Broke in d33e231 Signed-off-by: Akhil Narang <me@akhilnarang.dev>
1 parent 6effd61 commit c33ee8d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extract_and_push.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -808,9 +808,9 @@ echo "[INFO] Generating 'all_files.txt'..."
808808
find . -type f ! -name all_files.txt -and ! -path "*/aosp-device-tree/*" -printf '%P\n' | sort | grep -v ".git/" > ./all_files.txt
809809

810810
# Check whether the subgroup exists or not
811-
if ! group_id_json="$(curl --compressed -sH --fail-with-body "Authorization: Bearer $DUMPER_TOKEN" "https://$GITLAB_SERVER/api/v4/groups/$ORG%2f$repo_subgroup")"; then
811+
if ! group_id_json="$(curl --compressed --fail-with-body -sH "Authorization: Bearer $DUMPER_TOKEN" "https://$GITLAB_SERVER/api/v4/groups/$ORG%2f$repo_subgroup")"; then
812812
echo "Response: $group_id_json"
813-
if ! group_id_json="$(curl --compressed -sH --fail-with-body "Authorization: Bearer $DUMPER_TOKEN" "https://$GITLAB_SERVER/api/v4/groups" -X POST -F name="${repo_subgroup^}" -F parent_id=64 -F path="${repo_subgroup}" -F visibility=public)"; then
813+
if ! group_id_json="$(curl --compressed --fail-with-body -sH "Authorization: Bearer $DUMPER_TOKEN" "https://$GITLAB_SERVER/api/v4/groups" -X POST -F name="${repo_subgroup^}" -F parent_id=64 -F path="${repo_subgroup}" -F visibility=public)"; then
814814
echo "Creating subgroup for $repo_subgroup failed"
815815
echo "Response: $group_id_json"
816816
sendTG_edit_wrapper permanent "${MESSAGE_ID}" "${MESSAGE}"$'\n'"<code>Creating subgroup for $repo_subgroup failed!</code>" > /dev/null

0 commit comments

Comments
 (0)