This repository was archived by the owner on Sep 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,13 @@ before_script:
27
27
script :
28
28
- ./build-for-osx.sh
29
29
# Parse release page json to obtain link to latest content zip file and download it
30
- - wget `curl -s https://api.github.com/repos/ComplianceAsCode/content/releases/latest?access_token=$GITHUB_TOKEN | jq -r ".assets[] | select(.name | test(\"(scap-security-guide-[0-9].[0-9].[0-9]*).zip\")) | .browser_download_url"` -O ssg.zip
30
+ - |
31
+ DWN_LINK=`curl -s https://api.github.com/repos/ComplianceAsCode/content/releases/latest?access_token=$GITHUB_TOKEN | jq -r ".assets[] | select(.name | test(\"(scap-security-guide-[0-9].[0-9].[0-9]*).zip\")) | .browser_download_url"`
32
+ if [ -z "${DWN_LINK}" ] ; then
33
+ echo "Could not get the ZIP URL! It is empty!"
34
+ exit 1
35
+ fi
36
+ - wget "${DWN_LINK}" -O ssg.zip
31
37
- mkdir -p `pwd`/build-osx/scap-workbench.app/Contents/Resources/ssg/ && unzip ssg.zip && cp -a scap-security-guide-*/* `pwd`/build-osx/scap-workbench.app/Contents/Resources/ssg/
32
38
- cd build-osx && sh osx-create-dmg.sh
33
39
You can’t perform that action at this time.
0 commit comments