Skip to content

Commit

Permalink
Export local alt values to bootstrap
Browse files Browse the repository at this point in the history
Upstream issue: yadm-dev#291
Upstream PR: yadm-dev#312
  • Loading branch information
kgadek committed Apr 17, 2022
1 parent abf6ea4 commit 8999c1e
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 @@ -753,6 +753,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 8999c1e

Please sign in to comment.