Skip to content

Commit

Permalink
~ (tilde) might not get expanded in some shells (POSIX, zsh)
Browse files Browse the repository at this point in the history
  • Loading branch information
albestro committed Jan 19, 2024
1 parent 1ba4032 commit 7c1288d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stackinator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def main():
root_logger.info(f"cd {builder.path}")
root_logger.info(
"env --ignore-environment PATH=/usr/bin:/bin:`pwd`"
"/spack/bin HOME=~ make store.squashfs -j32"
"/spack/bin HOME=$HOME make store.squashfs -j32"
)
return 0
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion stackinator/templates/stack-debug.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
env --ignore-environment PATH=/usr/bin:/bin:{{ build_path }}/spack/bin HOME=~ SOFTWARE_STACK_PROJECT={{ build_path }} STORE={{ mount_path }} SPACK_SYSTEM_CONFIG_PATH={{ build_path }}/config SPACK_USER_CACHE_PATH={{ build_path }}/cache SPACK=spack SPACK_COLOR=always SPACK_USER_CONFIG_PATH=/dev/null LC_ALL=en_US.UTF-8 TZ=UTC SOURCE_DATE_EPOCH=315576060 {{ build_path }}/bwrap-mutable-root.sh --tmpfs ~ --bind {{ build_path }}/tmp /tmp --bind {{ build_path }}/store {{ mount_path }} bash -noprofile -l
env --ignore-environment PATH=/usr/bin:/bin:{{ build_path }}/spack/bin HOME=$HOME SOFTWARE_STACK_PROJECT={{ build_path }} STORE={{ mount_path }} SPACK_SYSTEM_CONFIG_PATH={{ build_path }}/config SPACK_USER_CACHE_PATH={{ build_path }}/cache SPACK=spack SPACK_COLOR=always SPACK_USER_CONFIG_PATH=/dev/null LC_ALL=en_US.UTF-8 TZ=UTC SOURCE_DATE_EPOCH=315576060 {{ build_path }}/bwrap-mutable-root.sh --tmpfs ~ --bind {{ build_path }}/tmp /tmp --bind {{ build_path }}/store {{ mount_path }} bash -noprofile -l

0 comments on commit 7c1288d

Please sign in to comment.