Merge pull request #146 from outis1one/claude/zealous-heisenberg-8ylloi

Fix write_readme missing from standalone bootstrap fallback
This commit is contained in:
Outis
2026-06-26 01:08:53 -04:00
committed by GitHub
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -498,6 +498,13 @@ if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
generate_password() { tr -dc 'A-Za-z0-9' </dev/urandom | head -c "${1:-32}"; }
write_readme() {
local _dir="$1"; shift
[[ "$DRY_RUN" == "true" ]] && return 0
mkdir -p "$_dir"
cat > "$_dir/README.md"
}
ACTUAL_USER="${SUDO_USER:-$USER}"
ACTUAL_HOME=$(eval echo "~$ACTUAL_USER")
DOCKER_DIR="$ACTUAL_HOME/docker"
+7
View File
@@ -403,6 +403,13 @@ if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
eval "$_var='${_r:-$_def}'"
}
write_readme() {
local _dir="$1"; shift
[[ "$DRY_RUN" == "true" ]] && return 0
mkdir -p "$_dir"
cat > "$_dir/README.md"
}
ACTUAL_USER="${SUDO_USER:-$USER}"
ACTUAL_HOME=$(eval echo "~$ACTUAL_USER")
DOCKER_DIR="$ACTUAL_HOME/docker"