Skip to content

Commit

Permalink
Use single quote instead of backtick in bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
HKalbasi committed Sep 6, 2024
1 parent a580588 commit 1514758
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/environment/login/login-inner.nix
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ writeText "login-inner" ''
exec /usr/bin/env "$@"
elif [ -d "$usershell" ]; then
echo "Cannot execute shell '${userShell}', it is a directory."
echo "Unlike nixos you should point `user.shell` to the exact binary."
echo "You should point 'user.shell' to the exact binary."
echo "Falling back to bash."
exec -l bash
elif [ -x "$usershell" ]; then
Expand Down
2 changes: 1 addition & 1 deletion tests/emulator/poke_around.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def change_shell_and_relogin(shell, descr):
wait_for(d, 'Cannot execute shell ')
wait_for(d, 'it is a directory.')
wait_for(d,
'Unlike nixos you should point `user.shell` to the exact binary.')
"You should point 'user.shell' to the exact binary.")
wait_for(d, 'Falling back to bash.')
wait_for(d, 'bash-5.2$')
screenshot(d, 're-login-done-shell-dir-fallback')
Expand Down

0 comments on commit 1514758

Please sign in to comment.