Skip to content

Commit

Permalink
Make post-drupal-scaffold-cmd POSIX compatible
Browse files Browse the repository at this point in the history
Apparently Github Actions doesn't run Bash, so the `[[` (test) command
is unknown. Use POSIX `[` instead, to avoid error messages.
  • Loading branch information
xendk committed Nov 20, 2024
1 parent 1884b67 commit 2b05573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@
},
"scripts": {
"post-drupal-scaffold-cmd": [
"[[ ! -d /app/web/sites/default/files/modules_local ]] && mkdir -p /app/web/sites/default/files/modules_local || exit 0",
"[[ ! -L /app/web/modules/local ]] && ln -s /app/web/sites/default/files/modules_local /app/web/modules/local || exit 0"
"[ ! -d web/sites/default/files/modules_local ] && mkdir -p web/sites/default/files/modules_local || exit 0",
"[ ! -L web/modules/local ] && ln -s web/sites/default/files/modules_local web/modules/local || exit 0"
]
},
"extra": {
Expand Down

0 comments on commit 2b05573

Please sign in to comment.