mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
nixos-enter: specify absolute path to bash
Not doing so makes it impossible to use nixos-enter from a non-NixOS distro
This commit is contained in:
parent
7af0aa846e
commit
80ea345494
1 changed files with 2 additions and 2 deletions
|
@ -15,8 +15,8 @@ else
|
|||
fi
|
||||
|
||||
mountPoint=/mnt
|
||||
command=("bash" "--login")
|
||||
system=/nix/var/nix/profiles/system
|
||||
command=($system/sw/bin/bash "--login")
|
||||
|
||||
while [ "$#" -gt 0 ]; do
|
||||
i="$1"; shift 1
|
||||
|
@ -32,7 +32,7 @@ while [ "$#" -gt 0 ]; do
|
|||
exit 1
|
||||
;;
|
||||
--command|-c)
|
||||
command=("bash" "-c" "$1")
|
||||
command=($system/sw/bin/bash "-c" "$1")
|
||||
shift 1
|
||||
;;
|
||||
--)
|
||||
|
|
Loading…
Reference in a new issue