shell/{fasd,ssh}/install: add $FORCE envvar + exist check

This commit is contained in:
Henrik Lissner 2016-12-16 20:58:36 -05:00
parent bbab9de563
commit 6fd3e9e33e
2 changed files with 8 additions and 0 deletions

View file

@ -1,5 +1,9 @@
#!/bin/bash
if [[ -z $FORCE ]]; then
command -v fasd >/dev/null && exit
fi
case "$OSTYPE" in
darwin*)
brew install fasd

View file

@ -1,5 +1,9 @@
#!/usr/bin/env bash
if [[ -z $FORCE ]]; then
pgrep sshd >/dev/null && exit
fi
case $OSTYPE in
darwin*)
# Comes preinstalled on MacOS