carbon-core-system

Integration repository for versioned configuration and software on Carbon
git clone https://ccx.te2000.cz/git/carbon-core-system
Log | Files | Refs | Submodules

commit fe489d1ac580237c058e78c0eabebb2c9277e3b7
parent f7acdf725196cc659986c30403a50929c9c74761
Author: ccx <root@dorje.wpr.cz>
Date:   Mon, 29 Mar 2021 23:45:12 +0200

Expose installation destination of top-level "all" module.

Diffstat:
Minstall | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/install b/install @@ -65,10 +65,14 @@ ln_sub_command() { } install_dot() { local submodule cmd + # export sm_dst_* variables for each submodule for submodule in "${(k@)sm_dst}"; do - [[ $submodule == . ]] && continue - eval "export sm_dst_${submodule//-/_}"='$sm_dst[$submodule]' + if [[ $submodule == . ]]; then + export sm_dst_all=$sm_dst[.] + else + eval "export sm_dst_${submodule//-/_}"='$sm_dst[$submodule]' + fi done s6-mkdir -p ${sm_dst[.]}/command || exit $?