Skip to content
Snippets Groups Projects
Commit 96d8f574 authored by alvaro's avatar alvaro
Browse files

Improved messages for add/remove endpoints and namespaces

parent 5bb5f778
No related branches found
No related tags found
No related merge requests found
......@@ -142,10 +142,10 @@ if [[ $currentOperation == "add" ]]; then
php $DIR/modules/add-$addOperation.php $3 $4
rc=$?
if [[ $rc != 0 ]] ; then
echo -e "Endpoint with prefix '$3' already exist, please remove it first." >&2
echo -e "The $addOperation with prefix '$3' already exist, please remove it first." >&2
exit
fi
echo -e "Endpoint $4 added successfully as $3!" >&2
echo -e "The $addOperation $4 was added successfully as $3!" >&2
exit
fi
......@@ -164,10 +164,10 @@ if [[ $currentOperation == "remove" ]]; then
php $DIR/modules/remove-$addOperation.php $3
rc=$?
if [[ $rc != 0 ]] ; then
echo -e "Something went wrong while removing '$4'. Please check your settings.inc.php" >&2
echo -e "Something went wrong while removing '$3'. Please check your settings.inc.php" >&2
exit
fi
echo -e "Endpoint $4 removed successfully!" >&2
echo -e "The $addOperation $3 was removed successfully!" >&2
exit
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment