diff options
| author | jason | 2020-01-08 09:30:20 -0700 |
|---|---|---|
| committer | jason | 2020-01-08 09:30:20 -0700 |
| commit | 4f2033b8a992f363328321ce01f32a95a6f297a2 (patch) | |
| tree | 0a81bf516c20c8be1d69f15a24c1208f0a50f512 /scripts/bin | |
| parent | 7040162ffb61d9bf048694e19242feb4f161f560 (diff) | |
| parent | 6e3edee4d427227901d58ec6b5290cc3a25f8f74 (diff) | |
| download | dotfiles-4f2033b8a992f363328321ce01f32a95a6f297a2.tar.gz dotfiles-4f2033b8a992f363328321ce01f32a95a6f297a2.zip | |
Merge branch 'master' of zzq.org:repos/dotfiles
Diffstat (limited to 'scripts/bin')
| -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 |