summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-28 09:46:30 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-28 09:46:30 (EDT)
commit14ff6400c90eb034c7d67ddd6e7bf782fbc65be0 (patch)
treea84c51181ce1296ee9e8f968891e398c2d95d176
parent25a9990c6a2d41b3186a2d8c79a2585995b381df (diff)
install-lilo.sh: Fix argc check.
-rw-r--r--install-lilo.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/install-lilo.sh b/install-lilo.sh
index 3ce2a16..9880c58 100644
--- a/install-lilo.sh
+++ b/install-lilo.sh
@@ -8,7 +8,7 @@ main()
[ "x$(id -u)" = 'x0' ] || error 'Must be run as the superuser'
- if [ ${?} -ne 1 ]; then
+ if [ ${#} -ne 1 ]; then
usage >&2
exit 1
fi