mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 18:40:09 +00:00
Replace [[ ]] with [ ] for POSIX compatibility
Double brackets are not compatible with all POSIX compliant shells. Replaced with single brackets. http://mywiki.wooledge.org/BashFAQ/031
This commit is contained in:
parent
eb51b0c383
commit
0a6f6cb281
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user