Maintenance: GitLab GKE platform upgrade and software upgrade on Friday Oct. 22 at 9 p.m. Service may not be available between 9 p.m. and 9:20 p.m.

Commit 5f1323c7 authored by Xueshan Feng's avatar Xueshan Feng
Browse files

extract subdomain if the commandline argument is a fqdn.

parent 5038144c
Pipeline #26 skipped
......@@ -20,7 +20,8 @@ do
domain=$OPTARG
;;
s)
subdomain="${OPTARG%%/*}"
# extract subdomain
subdomain="${OPTARG%%.*}"
;;
o)
ou=$OPTARG
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment