features/test/common-utils/configure_zsh_as_default_shell.sh
Jacob Woffenden aae9de7ebc
Change default shell if installing ZSH (#325)
* Added new option to configure zsh as default shell
Added test scenario
Bumped feature version

* Update test/common-utils/scenarios.json

Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>

* Update src/common-utils/devcontainer-feature.json

Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>

* Update test/common-utils/configure_zsh_as_default_shell.sh

Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>

Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
2022-12-09 14:08:20 -08:00

13 lines
258 B
Bash

#!/bin/bash
set -e
# Optional: Import test library
source dev-container-features-test-lib
# Definition specific tests
check "default-shell-is-zsh" bash -c "getent passwd $(whoami) | awk -F: '{ print $7 }' | grep '/bin/zsh'"
# Report result
reportResults