mirror of
https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git
synced 2025-12-15 11:22:43 +03:00
Fix quoting when reading subshells
This is needed for yash.
This commit is contained in:
parent
a67cbd37b0
commit
12bc6af2ce
@ -24,7 +24,7 @@ set_ssh_keys() {
|
||||
skip_action set_ssh_keys && return
|
||||
|
||||
local user="$CLOUD_USER"
|
||||
local pwent=$(getent passwd "$user")
|
||||
local pwent="$(getent passwd "$user")"
|
||||
local group=$(echo "$pwent" | cut -d: -f4)
|
||||
local ssh_dir="${ROOT}$(echo "$pwent" | cut -d: -f6)/.ssh"
|
||||
local keys_file="$ssh_dir/authorized_keys"
|
||||
|
||||
@ -88,7 +88,7 @@ load_nocloud() {
|
||||
_imds() {
|
||||
mkdir -p "$TINY_CLOUD_VAR"
|
||||
local file="$TINY_CLOUD_VAR"/$(echo "$1" | cut -d/ -f1)
|
||||
local keypath=$(echo "$1" | cut -d/ -f2- | tr / ' ')
|
||||
local keypath="$(echo "$1" | cut -d/ -f2- | tr / ' ')"
|
||||
|
||||
is_nocloud_loaded || load_nocloud
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user