Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

better error msg in script

  • Loading branch information...
commit 23ef914ef30c05b95ba7a0af7c463e491d848f5d 1 parent 643dc5b
Dave Reisner authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 _posts/2012-08-25-back-to-basics-with-x-and-systemd.textile
4 _posts/2012-08-25-back-to-basics-with-x-and-systemd.textile
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.