Skip to content

Commit ce8453d

Browse files
committed
fix drush during first run
1 parent d8d2d9f commit ce8453d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

uceap-drupal-dev-update-content

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/bin/bash
22
set -eo pipefail
33

4+
# during first run, the new PATH from the on-create script is not yet in effect
5+
if ( ! command -v drush > /dev/null ); then
6+
export PATH="`pwd`/vendor/bin:$PATH"
7+
fi
8+
49
# we need to preserve gitconfig if it already exists
510
if [ -f ~/.gitconfig ]; then
611
gitconfig_existed=true

0 commit comments

Comments
 (0)