Skip to content

Commit

Permalink
Use single brackets only for if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
leptos-null committed Sep 1, 2024
1 parent 7c5e341 commit 28396c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
hdiutil attach "${DMG_FILE}" -mountroot "${DMG_MOUNT_ROOT}" || true
for MOUNT_VOL in "${DMG_MOUNT_ROOT}"/*; do
DYLD_CACHE_PATH="${MOUNT_VOL}/System/Library/Caches/com.apple.dyld/${DSC_BASENAME}"
if [[ -e "${DYLD_CACHE_PATH}" ]]; then
if [ -e "${DYLD_CACHE_PATH}" ]; then
break 2 # break out of DMG_FILE loop
fi
# here becuase we didn't find the dyld shared cache (didn't break)
Expand All @@ -108,7 +108,7 @@ jobs:
echo "Found dyld_shared_cache: ${DYLD_CACHE_PATH}"
if [[ -z "${DYLD_CACHE_PATH}" ]]; then
if [ -z "${DYLD_CACHE_PATH}" ]; then
echo "Failed to find ${DSC_BASENAME} in IPSW"
exit 1
fi
Expand Down

0 comments on commit 28396c3

Please sign in to comment.