-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
677b9e3
commit c9aeab2
Showing
4 changed files
with
27 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
#!/usr/bin/env sh | ||
git clone https://github.com/opencodeco/phpctl.git ~/.phpctl | ||
cd ~/.phpctl | ||
./phpctl install | ||
#!/usr/bin/env bash | ||
|
||
INSTALL_DIR=~/.phpctl | ||
|
||
symlink() { | ||
sudo ln -sf "${INSTALL_DIR}/phpctl" /usr/local/bin/phpctl | ||
sudo ln -sf "${INSTALL_DIR}/phpctl" /usr/local/bin/pctl | ||
} | ||
|
||
echo -e "\033[0;33mInstalling phpctl at \033[0m$INSTALL_DIR" | ||
rm -rf $INSTALL_DIR | ||
git clone --quiet https://github.com/opencodeco/phpctl.git $INSTALL_DIR | ||
|
||
echo -e "Sudo will be prompted to symlink the phpctl files. \033[0;32mDo you want to continue?\033[0m" | ||
select yn in "Yes" "No"; do | ||
case $yn in | ||
Yes ) symlink; break;; | ||
No ) exit;; | ||
esac | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.