Skip to content

Commit

Permalink
Export local alt values to bootstrap
Browse files Browse the repository at this point in the history
Upstream issue: TheLocehiliosan#291
Upstream PR: TheLocehiliosan#312
  • Loading branch information
kgadek committed Dec 2, 2021
1 parent f8abcd7 commit d06b450
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions yadm
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,19 @@ function bootstrap() {
# GIT_DIR should not be set for user's bootstrap code
unset GIT_DIR

local local_class
local local_system
local local_host
local local_user
local local_distro
set_local_alt_values

export YADM_CLASS="$local_class"
export YADM_OS="$local_system"
export YADM_HOSTNAME="$local_host"
export YADM_USER="$local_user"
export YADM_DISTRO="$local_distro"

echo "Executing $YADM_BOOTSTRAP"
exec "$YADM_BOOTSTRAP"

Expand Down

0 comments on commit d06b450

Please sign in to comment.