Skip to content

Commit e31dea5

Browse files
committed
chore(goreleaser): keep git state clean when generating notices file
1 parent 175ca46 commit e31dea5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

hack/generate-notices-file.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ curl -s -S -X GET ${report_download_url} \
142142
-H "Authorization: Bearer ${bearer_token}" \
143143
-o ${BLACKDUCK_PROJECT_NAME}-licenses.zip
144144

145-
unzip -j ${BLACKDUCK_PROJECT_NAME}-licenses.zip
145+
mv ${BLACKDUCK_PROJECT_NAME}-licenses.zip tmp/
146146

147-
mv version-license_*.txt tmp/Black_Duck_Notices_Report.txt
147+
unzip -j tmp/${BLACKDUCK_PROJECT_NAME}-licenses.zip
148+
149+
ls -l tmp/
150+
151+
mv tmp/version-license_*.txt tmp/Black_Duck_Notices_Report.txt

0 commit comments

Comments
 (0)