diff options
Diffstat (limited to 'Biz/Ide/push')
-rwxr-xr-x | Biz/Ide/push | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Biz/Ide/push b/Biz/Ide/push index f6b9b98..7ace897 100755 --- a/Biz/Ide/push +++ b/Biz/Ide/push @@ -2,14 +2,14 @@ # Eventually convert to haskell, see: # - https://github.com/awakesecurity/nix-deploy/blob/master/src/Main.hs # - http://www.haskellforall.com/2018/08/nixos-in-production.html -prefix=$(echo $PWD | sed -e "s|^$BIZ_ROOT/*||g") +prefix=$(echo $PWD | sed -e "s|^${BIZ_ROOT:?}/*||g") if [[ "$prefix" == "" ]] then target="$1" else target="$prefix.$1" fi -what=$(realpath "$BIZ_ROOT/_/nix/$target") +what=$(realpath "${BIZ_ROOT:?}/_/nix/$target") # hack: get the domain from the activation script. there does not seem # to be a way to get it from nix-instantiate where=$(rg -r '$2' -e '(domainname ")(.*)(")' "$what/activate") |