File tree 1 file changed +51
-0
lines changed
1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ INSTALL_DIR=~ /.phpctl
4
+ SYMLINK_DIR=/usr/local/bin
5
+
6
+ LINKS=(
7
+ composer
8
+ composer-require-checker
9
+ co-phpunit
10
+ couscous
11
+ deptrac
12
+ exakat
13
+ frankenphp
14
+ infection
15
+ notty
16
+ pest
17
+ php
18
+ phpcbf
19
+ phpcs
20
+ php-cs-fixer
21
+ phpctl
22
+ phpmd
23
+ phpstan
24
+ phpunit
25
+ pint
26
+ rector
27
+ watchr
28
+ )
29
+
30
+ # Removing symlink
31
+ echo " Removing symbolic links..."
32
+ for link in " ${LINKS[@]} " ; do
33
+ if [ -L " ${SYMLINK_DIR} /${link} " ]; then
34
+ sudo rm " ${SYMLINK_DIR} /${link} "
35
+ echo " Removed ${SYMLINK_DIR} /${link} "
36
+ else
37
+ echo " Link ${SYMLINK_DIR} /${link} does not exist, skipping."
38
+ fi
39
+ done
40
+
41
+ # Opcional: removing directory
42
+ echo -e " \nDo you want to remove the installation directory (${INSTALL_DIR} )? (Y/n) "
43
+ read -r answer
44
+ if [ " $answer " != " ${answer# [Yy]} " ]; then
45
+ rm -rf " $INSTALL_DIR "
46
+ echo " Removed installation directory: ${INSTALL_DIR} "
47
+ else
48
+ echo " Skipping removal of installation directory."
49
+ fi
50
+
51
+ echo " Uninstallation complete."
You can’t perform that action at this time.
0 commit comments