diff options
author | June McEnroe <june@causal.agency> | 2022-01-02 20:29:05 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2022-01-02 20:29:05 -0500 |
commit | 35b6c4846f89a215fed68c477b85b47c4d03ce67 (patch) | |
tree | 452daf73b75578348ce501a6830335a69030da6d | |
parent | Remove attempt to automatically install MacPorts (diff) | |
download | src-35b6c4846f89a215fed68c477b85b47c4d03ce67.tar.gz src-35b6c4846f89a215fed68c477b85b47c4d03ce67.zip |
Remove sudo/doas from install script
Now that everything requires root anyway, just run the script as root.
Diffstat (limited to '')
-rw-r--r-- | install.sh | 20 |
1 files 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) |