mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-08-19 19:05:22 +02:00
fedora: Revoke sudo privileges when no longer needed
We don't need sudo privileges when installing the dotfiles and vim plugins.
This commit is contained in:
@@ -19,6 +19,9 @@ sudo -n dnf install -y make fedpkg
|
||||
# Run make
|
||||
make
|
||||
|
||||
# Revoke privileges
|
||||
sudo -K
|
||||
|
||||
# Install dotfiles
|
||||
make -C ..
|
||||
|
||||
@@ -27,6 +30,3 @@ wal --theme base16-tomorrow-night
|
||||
|
||||
# Run vim for the first time (i.e. install plugins and exit)
|
||||
nvim
|
||||
|
||||
# Revoke privileges
|
||||
sudo -K
|
||||
|
Reference in New Issue
Block a user