Skip to content

Commit 7afcbae

Browse files
committed
api_refs.sh: Force recipes
1 parent e6d99cf commit 7afcbae

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tools/api_refs/api_refs.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,11 @@ else
206206
exit 3;
207207
fi;
208208

209-
echo 'Set up DXP recipes…';
210-
git init && git add . && git commit -m "Installed Ibexa Commerce" > /dev/null;
211-
composer recipes:install ibexa/$DXP_EDITION --no-interaction;
209+
if [ 0 -eq $DXP_ALREADY_EXISTS ]; then
210+
echo 'Set up DXP recipes…';
211+
git init && git add . && git commit -m "Installed Ibexa Commerce" > /dev/null;
212+
composer recipes:install ibexa/$DXP_EDITION --force --reset --no-interaction;
213+
fi;
212214

213215
echo 'Dump REST OpenAPI schema… ';
214216
$PHP_BINARY bin/console ibexa:openapi --yaml \

0 commit comments

Comments
 (0)