updated scripts: better warn messages, added/updated dotfiles
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
warn() { echo ">>> [configure-root] WARNING: $*" >&2; }
|
||||
|
||||
SRC="{{ .chezmoi.sourceDir }}"
|
||||
ROOT_HOME="/root"
|
||||
|
||||
@@ -48,7 +50,7 @@ if command -v fish >/dev/null 2>&1; then
|
||||
current="$(getent passwd root | cut -d: -f7)"
|
||||
if [ "$current" != "$(command -v fish)" ]; then
|
||||
echo ">>> [configure-root] chsh root → fish"
|
||||
sudo chsh -s "$(command -v fish)" root || true
|
||||
sudo chsh -s "$(command -v fish)" root || warn "chsh failed for root (may need /etc/shells entry)"
|
||||
else
|
||||
echo ">>> [configure-root] root shell already fish"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user