diff options
Diffstat (limited to 'src/chroot-tools/librechroot')
-rwxr-xr-x | src/chroot-tools/librechroot | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot index 80c7f4f..ca76569 100755 --- a/src/chroot-tools/librechroot +++ b/src/chroot-tools/librechroot @@ -133,13 +133,13 @@ main() { } ;; C|M) archroot_args+=(-$arg "$OPTARG");; - *) usage; return 1;; + *) usage >/dev/stderr; return 1;; esac done shift $(($OPTIND - 1)) if [[ $# < 1 ]]; then error "Must specify a command" - usage + usage >/dev/stderr return 1 fi mode=$1 @@ -243,6 +243,7 @@ main() { ;; *) error "Unrecognized command: \`$mode'" + usage >/dev/stderr return 1 ;; esac |