Merge pull request #9918 from Stevoisiak/posix-undefined-brackets

Replace [[ ]] with [ ] for POSIX compatibility
This commit is contained in:
Twinaphex 2019-12-31 17:39:33 +01:00 committed by GitHub
commit 48fddcb7bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ echo "Cores dir: ${CORES_DIR}"
if [ -d "$CORES_DIR" ] ; then
CORES=$(find "${CORES_DIR}" -depth -type d -name "*.framework" -or -name "*.dylib" -or -name "*.bundle" | sed -e "s/\(.*framework\)/\1\/Versions\/A\//")
RESULT=$?
if [[ $RESULT != 0 ]] ; then
if [ "$RESULT" != 0 ] ; then
exit 1
fi
@ -58,7 +58,7 @@ do
echo "Signing '${ITEM}'"
codesign --force --verbose --sign "${CODE_SIGN_IDENTITY_FOR_ITEMS}" "${ITEM}"
RESULT=$?
if [[ $RESULT != 0 ]] ; then
if [ "$RESULT" != 0 ] ; then
echo "Failed to sign '${ITEM}'."
IFS=$SAVED_IFS
exit 1