Skip to content

Commit ba4610a

Browse files
committed
Chsh only if user has SU access
1 parent b836c57 commit ba4610a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/configure-system.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ TEXT_EDITOR_TAB_SIZE=4
187187
TEXT_EDITOR_WORD_WRAP=false
188188

189189
# Set the default shell
190-
[ -n "${SHELL}" ] && sudo chsh -s "${SHELL}" "${USER}"
190+
[ -n "${SHELL}" ] && ${HAS_SU_ACCESS} && sudo chsh -s "${SHELL}" "${USER}"
191191

192192
if ${HAS_GUI}; then
193193
if [[ "${ICON_THEME}" == *"Papirus"* ]] \

0 commit comments

Comments
 (0)