--- a/lib/update.args Mon Dec 16 21:53:41 2013 +0200
+++ b/lib/update.args Tue Dec 17 00:04:00 2013 +0200
@@ -1,7 +1,7 @@
#!/bin/bash
# vim: set ft=sh :
#
-# Command-line option handling
+# Command-line options
# use color output?
IS_TTY=
@@ -70,6 +70,9 @@
## Parse any command-line arguments, setting the global options vars.
function parse_args {
+ # test tty
+ [ -t 1 ] && IS_TTY=y
+
OPTIND=1
while getopts 'hd:qvDVpFSsnCcm:Rr' opt "$@"; do
@@ -79,7 +82,7 @@
exit 0
;;
- d) ROOT="$OPTARG" ;;
+ d) SRV="$OPTARG" ;;
q)
LOG=