aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-09 16:31:38 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-09 16:31:38 +1200
commit26bfaa3ad024e05d6679d5287bd5ba3be81dfde7 (patch)
treea1c5c8cd844cf484bb95394297264b41eec944c9 /bin
parentAdd note about pdksh to README (diff)
downloaddotfiles-26bfaa3ad024e05d6679d5287bd5ba3be81dfde7.tar.gz
dotfiles-26bfaa3ad024e05d6679d5287bd5ba3be81dfde7.zip
Change jfcd(1) to POSIX sh
Diffstat (limited to 'bin')
-rwxr-xr-xbin/jfcd9
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/jfcd b/bin/jfcd
index 87b669fd..b5fff5a1 100755
--- a/bin/jfcd
+++ b/bin/jfcd
@@ -1,12 +1,9 @@
-#!/usr/bin/env bash
+#!/bin/sh
-# jfcd(1) -- Watch a directory for changes and commit them with jfc(1) if there
-# are any
+# Watch a directory for changes and commit them with jfc(1) if there are any;
+# requires inotifywait(1)
self=jfcd
-# Check we have what we need
-hash inotifywait jfc || exit
-
# Function wrapper around inotifywait(1)
inw() {
inotifywait \