allow github usernames that contain uppercase

This commit is contained in:
ghe0 2024-11-15 22:51:35 +02:00
parent 8f854993d6
commit 1be7fc516a
Signed by: ghe0
GPG Key ID: 451028EE56A0FBB4

@ -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