Permalink
Browse files

better error msg in script

  • Loading branch information...
1 parent 643dc5b commit 23ef914ef30c05b95ba7a0af7c463e491d848f5d @falconindy committed Aug 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 _posts/2012-08-25-back-to-basics-with-x-and-systemd.textile
@@ -23,7 +23,7 @@ TTY=${TTY:-$(tty)}
TTY=${TTY#/dev/}
if [[ $TTY != tty* ]]; then
- printf '==> ERROR: invalid TTY for this script\n'
+ printf '==> ERROR: invalid TTY\n' >&2
exit 1
fi
@@ -45,7 +45,7 @@ TTY=${TTY:-$(tty)}
TTY=${TTY#/dev/}
if [[ $TTY != tty* ]]; then
- printf '==> ERROR: invalid TTY for this script\n'
+ printf '==> ERROR: invalid TTY\n' >&2
exit 1
fi

0 comments on commit 23ef914

Please sign in to comment.