summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-01-02 20:29:05 -0500
committerJune McEnroe <june@causal.agency>2022-01-02 20:29:05 -0500
commitd1870491011672f9559865e6bb624690dfdbdfae (patch)
treef064021b248767cb82028c5f8a9699058d3d2fb0
parentRemove attempt to automatically install MacPorts (diff)
downloadsrc-d1870491011672f9559865e6bb624690dfdbdfae.tar.gz
src-d1870491011672f9559865e6bb624690dfdbdfae.zip
Remove sudo/doas from install script
Now that everything requires root anyway, just run the script as
root.
-rw-r--r--install.sh20
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)