php fixes

This commit is contained in:
2023-03-10 13:55:10 +08:00
parent 01896666f2
commit 3bb7ec3564
7 changed files with 14 additions and 7 deletions

View File

@@ -12,7 +12,7 @@ installed() {
}
! installed 'php' && echo 'ERROR: You need php to be installed' && exit 1
! installed "composer" && echo "ERROR: You need composer to be installed" && exit 2
! installed "composer" && echo "ERROR: You rneed composer to be installed" && exit 2
COMPOSER_GLOBAL_HOME="$(composer config -g home)"
NEWPATH="export PATH=\"$COMPOSER_GLOBAL_HOME/vendor/bin:\${PATH}\""
@@ -20,6 +20,7 @@ cat "${HOME}/.profile" | grep -qoh "$NEWPATH" || {
$NEWPATH
echo "$NEWPATH" >> "${HOME}/.profile"
}
source "${HOME}/.profile"
composer global require phpunit/phpunit --dev