File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 4343# Remove from the projects file
4444echo -e " \033[1mRemoving project from \033[34m$projectsFile \033[0;1m...\033[0m"
4545realpath=" $( readlink -f " $project " ) "
46- if ! sed -i " /${realpath// \/ / \/ } /d" " $projectsFile " ; then # Replace / with \/ because of the sed separators
46+ if ! sed -i " /^ ${realpath// \/ / \/ } $ /d" " $projectsFile " ; then # Replace / with \/ because of the sed separators
4747 echo -e " => \033[31mSomething went wrong.\033[0m" >&2
4848 exit 1
4949fi
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ echo -e " => \033[32mSuccess.\033[0m"
7373
7474# Remove from site's domains
7575echo -e " \033[1mRemoving domain from site's domains (\033[34m.domains\033[0;1m file)...\033[0m"
76- sed -i " /${domain// \/ / \/ } /d" " $HOME /web/sites/$site /.domains" # Replace / with \/ because of the sed separators
76+ sed -i " /^ ${domain// \/ / \/ } $ /d" " $HOME /web/sites/$site /.domains" # Replace / with \/ because of the sed separators
7777if [[ $? == 0 ]]; then
7878 echo -e " => \033[32mSuccess.\033[0m"
7979else
You can’t perform that action at this time.
0 commit comments