This commit is contained in:
2023-11-14 15:32:00 -06:00
parent d15dd6c1c1
commit 0da1f7ccee
2 changed files with 49 additions and 44 deletions

View File

@@ -6,7 +6,7 @@ DELSITE(){
-ssl) DEL_SSL=${2};;
-list) DELSITES; exit 0;;
-*)
echo "Invalid option: '${1}' requires an argument" 1>&2
[ "${1}" != "-h" ] && echo "Invalid option: '${1}' requires an argument" 1>&2
echo
echo -e "Usage: ${idsCL[Yellow]}[nodemgmt or nmg] delsite${idsCL[Default]} {"
width=35
@@ -14,7 +14,7 @@ DELSITE(){
printf "%-${width}s- %s\n" " -ssl {yes or [no]}" "Delete SSL certs as well"
printf "%-${width}s- %s\n" " -list" "List sites (same as running nodemgmt delsites)"
echo "}"
exit 1;;
exit 0;;
esac
shift
done