Skip to content

Commit 7325608

Browse files
committed
Use if rather than and/or.
1 parent 914ca5a commit 7325608

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

master/custom/factories.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,8 +1195,9 @@ def current_setup(self, branch, worker, test_with_PTY=False, **kwargs):
11951195
ShellCommand(
11961196
name="Set up compatibility symlink",
11971197
command=(
1198-
"[ -e Platforms/Apple ] "
1199-
"|| ln -s ../Apple Platforms/Apple"
1198+
"if [ ! -e Platforms/Apple ]; then"
1199+
" ln -s ../Apple Platforms/Apple; "
1200+
"fi"
12001201
),
12011202
),
12021203
# Build the full iOS XCframework, including a multi-arch simulator slice.
@@ -1277,10 +1278,11 @@ def setup(self, **kwargs):
12771278
ShellCommand(
12781279
name="Set up compatibility symlink",
12791280
command=(
1280-
"[ -e Platforms/Android ] "
1281-
"|| mkdir -p Platforms "
1282-
"&& ln -s ../Android Platforms/Android "
1283-
"&& ln -s ../Android/android.py Platforms/Android/__main__.py"
1281+
"if [ ! -e Platforms/Android ]; then"
1282+
" mkdir -p Platforms;"
1283+
" ln -s ../Android Platforms/Android;"
1284+
" ln -s ../Android/android.py Platforms/Android/__main__.py; "
1285+
"fi"
12841286
),
12851287
),
12861288
SetPropertyFromCommand(

0 commit comments

Comments
 (0)