From 55192f142b5232de9452bcadcff13564926aadaa Mon Sep 17 00:00:00 2001 From: Dennis Birkholz Date: Mon, 1 Dec 2014 12:46:06 +0100 Subject: [PATCH] Fix whitespace --- bin/phpenv-install.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bin/phpenv-install.sh b/bin/phpenv-install.sh index 96596aa..3010387 100755 --- a/bin/phpenv-install.sh +++ b/bin/phpenv-install.sh @@ -28,7 +28,7 @@ PHPENV_REPO="https://github.com/chh/phpenv" phpenv_script() { local root="$1" - + cat < "$install_location/bin/phpenv" chmod +x "$install_location/bin/phpenv" } @@ -62,31 +62,31 @@ clone_rbenv() { phpenvify() { local install_location="$1" local cwd=$(pwd) - + rev="$(cd "$(dirname "$0")" && git rev-parse --short HEAD)" - + cd "$install_location" - + rm -f bin/rbenv bin/ruby-local-exec - + # Create file phpenv prefixed copies of the original rbenv files for f in completions/rbenv* libexec/rbenv*; do cp -a "$f" "${f/rbenv/phpenv}" done - + # Remove all rbenv/Ruby from phpenv prefixed files sed --in-place -e 's/rbenv/phpenv/g' -e 's/RBENV/PHPENV/g' -e 's/Ruby/PHP/g' completions/phpenv* libexec/phpenv* - + # Fix the version cat < libexec/phpenv---version #!/bin/sh echo "phpenv $rev - based on \`$PHPENV_ROOT/libexec/rbenv---version\`" SH chmod a+x libexec/phpenv---version - + # Fix link in help text: sed --in-place -e "s|^.*For full documentation.*\$| echo \"For full documentation, see:\"\n echo \" rbenv: ${RBENV_REPO}#readme\"\n echo \" phpenv: ${PHPENV_REPO}#readme\"|" libexec/phpenv-help - + cd "$cwd" }