WIP: tests/emulator/test_channels_shell: investigate what happens to $PATH

This commit is contained in:
Alexander Sosedkin 2024-07-10 11:49:29 +02:00
parent 598fa1f995
commit f95fb313ff
3 changed files with 6 additions and 2 deletions

View file

@ -13,6 +13,8 @@ writeText "login-inner" ''
set -eo pipefail
echo login-inner PATH=$PATH
${lib.optionalString (config.environment.motd != null) ''
if [ "$#" -eq 0 ]; then # if script is called from within Nix-on-Droid app
echo "${lib.removeSuffix "\n" config.environment.motd}"

View file

@ -17,6 +17,8 @@ writeScript "login" ''
# This file is generated by Nix-on-Droid. DO NOT EDIT.
set -eu -o pipefail
echo login PATH=$PATH
export USER="${config.user.userName}"
export HOME="${config.user.home}"
export PROOT_TMP_DIR=${installationDir}/tmp