allow github usernames that contain uppercase
This commit is contained in:
parent
8f854993d6
commit
1be7fc516a
@ -110,7 +110,7 @@ install_os() {
|
||||
# detee_ghu stands for GitHub user and expects format detee_ghu=ghe0
|
||||
github_ssh_key() {
|
||||
local key=''
|
||||
github_user=$(cat /proc/cmdline | grep -oE 'detee_ghu=[0-9a-z\_\.\-]+' | cut -d '=' -f2)
|
||||
github_user=$(cat /proc/cmdline | grep -oE 'detee_ghu=[0-9a-zA-Z\_\.\-]+' | cut -d '=' -f2)
|
||||
[[ -z "$github_user" ]] && return 0
|
||||
mkdir -p /mnt/root/.ssh
|
||||
cd /mnt/root/.ssh
|
||||
|
Loading…
Reference in New Issue
Block a user