mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-03 09:48:29 +00:00
feat(scripts): have is now x-have script
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
# shellcheck source="shared.sh"
|
||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
||||
|
||||
! have php && msg_err "PHP Not Available, cannot install composer" && exit 0
|
||||
[[ $(x-have "php") == "1" ]] && msg_err "PHP Not Available, cannot install composer" && exit 0
|
||||
|
||||
EXPECTED_CHECKSUM="$(php -r 'copy("https://composer.github.io/installer.sig", "php://stdout");')"
|
||||
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||
|
||||
Reference in New Issue
Block a user