updated scripts: better warn messages, added/updated dotfiles
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
warn() { echo ">>> [configure-user] WARNING: $*" >&2; }
|
||||
|
||||
if ! command -v fish >/dev/null 2>&1; then
|
||||
echo ">>> [configure-user] fish not installed; skipping"
|
||||
exit 0
|
||||
@@ -19,4 +21,4 @@ if [ "$current_shell" = "$(command -v fish)" ]; then
|
||||
fi
|
||||
|
||||
echo ">>> [configure-user] changing shell for $USER_NAME to $(command -v fish)"
|
||||
sudo chsh -s "$(command -v fish)" "$USER_NAME" || true
|
||||
sudo chsh -s "$(command -v fish)" "$USER_NAME" || warn "chsh failed for $USER_NAME (may need /etc/shells entry)"
|
||||
|
||||
Reference in New Issue
Block a user