fix: linting

This commit is contained in:
Andrejus
2021-06-28 00:37:17 +01:00
parent 9cea0005ee
commit 27c3473936
12 changed files with 20 additions and 31 deletions

View File

@@ -1,9 +1,9 @@
#!/usr/bin/env bash
fish --version
current_shell=`grep "^$USER" /etc/passwd`
current_shell=$(grep "^$USER" /etc/passwd)
current_shell=${current_shell##*:}
fish_shell=`command -v fish`
fish_shell=$(command -v fish)
if [[ "$current_shell" != "$fish_shell" ]]; then
sudo usermod --shell "$fish_shell" "$USER"
fi