1
0
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:
Natanael Copa 2023-03-28 11:58:55 +00:00
parent a67cbd37b0
commit 12bc6af2ce
2 changed files with 2 additions and 2 deletions

View File

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

View File

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