shell/{fasd,ssh}/install: add $FORCE envvar + exist check
This commit is contained in:
parent
bbab9de563
commit
6fd3e9e33e
|
@ -1,5 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ -z $FORCE ]]; then
|
||||||
|
command -v fasd >/dev/null && exit
|
||||||
|
fi
|
||||||
|
|
||||||
case "$OSTYPE" in
|
case "$OSTYPE" in
|
||||||
darwin*)
|
darwin*)
|
||||||
brew install fasd
|
brew install fasd
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [[ -z $FORCE ]]; then
|
||||||
|
pgrep sshd >/dev/null && exit
|
||||||
|
fi
|
||||||
|
|
||||||
case $OSTYPE in
|
case $OSTYPE in
|
||||||
darwin*)
|
darwin*)
|
||||||
# Comes preinstalled on MacOS
|
# Comes preinstalled on MacOS
|
||||||
|
|
Loading…
Reference in a new issue