diff options
| author | jason | 2020-01-07 19:43:46 -0700 |
|---|---|---|
| committer | jason | 2020-01-07 19:43:46 -0700 |
| commit | b840654313d6c3d1ced246db383e9e3ccc5783e1 (patch) | |
| tree | 6df1c2bfa80c7bd950cffcdddab495f34873ede4 /scripts | |
| parent | 7d2e4344ba4812eeebb7f4fe85b3f4774ea21da3 (diff) | |
| download | dotfiles-b840654313d6c3d1ced246db383e9e3ccc5783e1.tar.gz dotfiles-b840654313d6c3d1ced246db383e9e3ccc5783e1.zip | |
updates
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/bin/run-once | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/bin/run-once b/scripts/bin/run-once index 56f3709..214665b 100755 --- a/scripts/bin/run-once +++ b/scripts/bin/run-once | |||
| @@ -1,7 +1,10 @@ | |||
| 1 | #! /bin/bash | 1 | #! /bin/bash |
| 2 | 2 | ||
| 3 | # run_keybase -a doesn't work | ||
| 4 | export KEYBASE_AUTOSTART=1 | ||
| 5 | |||
| 3 | # Run program unless it's already running. | 6 | # Run program unless it's already running. |
| 4 | 7 | ||
| 5 | if [ -z "`ps -Af | grep -o -w ".*$1" | grep -v grep | grep -v run-once`" ]; then | 8 | if [ -z "`ps -Af | grep -o -w ".*$1" | grep -v grep | grep -v run-once`" ]; then |
| 6 | $@ | 9 | $@ |
| 7 | fi \ No newline at end of file | 10 | fi |