summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <curtis@hopper.com>2017-06-12 10:11:28 -0400
committerJune McEnroe <curtis@hopper.com>2017-06-12 10:11:28 -0400
commit2873df23c82ac1e5b9c171e1d9a7dfe925c00954 (patch)
tree1bf47919cbb02e36216591b99c624f0a395a69c7
parentAdd untested install script (diff)
downloadsrc-2873df23c82ac1e5b9c171e1d9a7dfe925c00954.tar.gz
src-2873df23c82ac1e5b9c171e1d9a7dfe925c00954.zip
Fix install script
-rwxr-xr-xinstall.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/install.sh b/install.sh
index 8b9df7c8..89f86d3f 100755
--- a/install.sh
+++ b/install.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -eu
 
-common=gdb git gnupg htop the_silver_searcher tmux tree
+common='gdb git gnupg htop the_silver_searcher tmux tree'
 
 macos() {
   homebrew=https://raw.githubusercontent.com/Homebrew/install/master/install
@@ -23,6 +23,6 @@ arch() {
   pacman -Sy --needed neovim openssh zsh
 }
 
-[ "`uname`" = 'Darwin' ] && exec macos
-[ -f /usr/local/sbin/pkg ] && exec freebsd
-[ -f /usr/bin/pacman ] && exec arch
+[ "`uname`" = 'Darwin' ] && macos && exit
+[ -f /usr/local/sbin/pkg ] && freebsd && exit
+[ -f /usr/bin/pacman ] && arch && exit