]> git.madduck.net Git - code/molly-guard.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

do not fail if called noninteractively
authormartin f. krafft <madduck@madduck.net>
Sat, 19 Apr 2008 13:22:35 +0000 (15:22 +0200)
committermartin f. krafft <madduck@madduck.net>
Sat, 19 Apr 2008 13:22:35 +0000 (15:22 +0200)
run.d/30-ask-hostname

index 6e33fe1fda833e91f493e7bdc5d207deafb7c495..70b18d9678529f9680f3535393208a08a132fe63 100755 (executable)
@@ -19,10 +19,7 @@ for arg in "$@"; do
 done
 
 # require an interactive terminal connected to stdin
-if ! test -t 0; then
-  echo "E: $ME: not connected to a terminal."
-  exit 1
-fi
+test -t 0 || exit 0
 
 # we've been asked to always protect this host
 if [ ${ALWAYS_QUERY_HOSTNAME:-0} -eq 1 ]; then