Skip to content

Commit

Permalink
feat: Interpreters on the installer
Browse files Browse the repository at this point in the history
  • Loading branch information
leocavalcante committed Dec 12, 2023
1 parent ec8f53f commit a3faae3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ test:
.PHONY: install
install:
@sudo ln -sf $(shell pwd)/composer /usr/local/bin/composer
@sudo ln -sf $(shell pwd)/php /usr/local/bin/php
@sudo ln -sf $(shell pwd)/phpctl /usr/local/bin/pctl
@sudo ln -sf $(shell pwd)/phpctl /usr/local/bin/phpctl
@sudo ln -sf $(shell pwd)/php /usr/local/bin/php
@sudo ln -sf $(shell pwd)/phpctl /usr/local/bin/pctl
@sudo ln -sf $(shell pwd)/phpctl /usr/local/bin/phpctl
12 changes: 7 additions & 5 deletions installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
INSTALL_DIR=~/.phpctl

symlink() {
sudo ln -sf "${INSTALL_DIR}/phpctl" /usr/local/bin/phpctl
sudo ln -sf "${INSTALL_DIR}/phpctl" /usr/local/bin/pctl
sudo ln -sf "${INSTALL_DIR}/composer" /usr/local/bin/composer
sudo ln -sf "${INSTALL_DIR}/php" /usr/local/bin/php
sudo ln -sf "${INSTALL_DIR}/phpctl" /usr/local/bin/pctl
sudo ln -sf "${INSTALL_DIR}/phpctl" /usr/local/bin/phpctl
}

echo "\033[0;33mInstalling phpctl at \033[0m$INSTALL_DIR"
Expand All @@ -19,8 +21,8 @@ else
echo "\033[0;31mTo use phpclt globally, link the cloned script to your bin directory, like:\033[0m"
echo ""
echo " sudo ln -sf ${INSTALL_DIR}/composer /usr/local/bin/composer"
echo " sudo ln -sf ${INSTALL_DIR}/php /usr/local/bin/php"
echo " sudo ln -sf ${INSTALL_DIR}/phpctl /usr/local/bin/pctl"
echo " sudo ln -sf ${INSTALL_DIR}/phpctl /usr/local/bin/phpctl"
echo " sudo ln -sf ${INSTALL_DIR}/php /usr/local/bin/php"
echo " sudo ln -sf ${INSTALL_DIR}/phpctl /usr/local/bin/pctl"
echo " sudo ln -sf ${INSTALL_DIR}/phpctl /usr/local/bin/phpctl"
echo ""
fi

0 comments on commit a3faae3

Please sign in to comment.