From d1870491011672f9559865e6bb624690dfdbdfae Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 2 Jan 2022 20:29:05 -0500 Subject: Remove sudo/doas from install script Now that everything requires root anyway, just run the script as root. --- install.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/install.sh b/install.sh index c3ec75e3..ae440bc7 100644 --- a/install.sh +++ b/install.sh @@ -12,29 +12,29 @@ done packages='curl htop sl the_silver_searcher tree' FreeBSD() { - sudo pkg install ddate $packages + pkg install ddate $packages } OpenBSD() { - doas pkg_add $packages + pkg_add $packages if test $X; then - doas pkg_add firefox go-fonts imv scrot sct w3m-- xcursor-dmz xsel + pkg_add firefox go-fonts imv scrot sct w3m-- xcursor-dmz xsel fi } Linux() { - sudo pacman -Sy --needed bc ctags gdb openssh vi $packages + pacman -Sy --needed bc ctags gdb openssh vi $packages } Darwin() { - sudo /opt/local/bin/port selfupdate - sudo /opt/local/bin/port -N install git mandoc nvi pkgconfig $packages - sudo mkdir -p /opt/local/etc/select/man + port selfupdate + port -N install git mandoc nvi pkgconfig $packages + mkdir -p /opt/local/etc/select/man printf 'bin/man\nshare/man/man1/man.1\nshare/man/man1/man.1.gz\n' \ - | sudo tee /opt/local/etc/select/man/base >/dev/null + >/opt/local/etc/select/man/base printf '/usr/bin/man\n/usr/share/man/man1/man.1\n-\n' \ - | sudo tee /opt/local/etc/select/man/system >/dev/null - sudo port select --set man system + >/opt/local/etc/select/man/system + port select --set man system } $(uname) -- cgit 1.4.1