Skip to content

Commit

Permalink
fix(just): drop chsh snippet
Browse files Browse the repository at this point in the history
We're removing chsh from the image, this removes the just snippet.
  • Loading branch information
castrojo authored Jul 27, 2024
1 parent 4b7aa2b commit bc2e21f
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions build/ublue-os-just/00-default.just
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,6 @@ logs-this-boot:
logs-last-boot:
sudo journalctl -b -1

# Change the user's shell
chsh new_shell:
#!/usr/bin/bash
set -euo pipefail
if [ "{{ shell }}" = "{{ new_shell }}" ] ; then
printf "Your shell is already set to %s.\n" "{{ new_shell }}"
else
if [ -x "{{ new_shell }}" ] ; then
sudo usermod $USER --shell "{{ new_shell }}"
printf "%s's shell is now %s.\n" "$USER" "{{ new_shell }}"
else
echo "{{ new_shell }} does not exist or is not executable!"
fi
fi

# Regenerate GRUB config, useful in dual-boot scenarios where a second operating system isn't listed
regenerate-grub:
#!/usr/bin/bash
Expand Down

0 comments on commit bc2e21f

Please sign in to comment.