Skip to content

Commit

Permalink
Merge pull request #1 from feenicsinc/case31230-sign-failing
Browse files Browse the repository at this point in the history
case 31230 - Handle CodeSignTool unzip not extracting into a folder
  • Loading branch information
JaspreetSanghra authored Dec 15, 2021
2 parents 70bb201 + d6caba8 commit e9a1e43
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Description

- enter here

## Related PRs

- insert link here

## Screenshots

- insert here
20 changes: 17 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ apt-get -qq update
echo "Installing JavaRuntime Environment"
apt-get install -y -qq default-jre > /dev/null

codeSignDir=$(ls | grep -w CodeSignTool-v*)

if [ ! -d "CodeSignTool-v1.2.0" ]; then
if [ -z "$codeSignDir" ] || [ ! -d ${codeSignDir} ]; then

echo "-----INSTALLING CURL------"
apt-get -y install curl
Expand All @@ -25,11 +26,24 @@ if [ ! -d "CodeSignTool-v1.2.0" ]; then
curl https://www.ssl.com/download/29764/ --output CodeSignTool.zip
echo "Extracting CodeSignTool"
unzip -o CodeSignTool.zip
echo "Extracting Complete"

cd CodeSignTool-v1.2.0
codeSignDir=$(ls | grep -w CodeSignTool-v*)
echo "codeSignDirectory 1: ${codeSignDir}"

if [ -z "$codeSignDir" ] || [ ! -d ${codeSignDir} ]; then
echo "Unzipping to CodeSignTool-vFeenics"
unzip -o CodeSignTool.zip -d CodeSignTool-vFeenics
fi

codeSignDir=$(ls | grep -w CodeSignTool-v*)
echo "codeSignDirectory 2: ${codeSignDir}"

cd ${codeSignDir}
mkdir -p "ssl-output"
else
cd CodeSignTool-v1.2.0
codeSignDir=$(ls | grep -w CodeSignTool-v*)
cd ${codeSignDir}
fi

if [ ${istest} = true ] ; then
Expand Down

0 comments on commit e9a1e43

Please sign in to comment.