Skip to content

Commit

Permalink
merge_config.sh: Display usage if given too few arguments
Browse files Browse the repository at this point in the history
Two or more arguments are always expected. Show usage and exit if
given less.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>
  • Loading branch information
Olof Johansson authored and Michal Marek committed Jan 7, 2015
1 parent 6341e62 commit 09950bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/kconfig/merge_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ while true; do
esac
done

if [ "$#" -lt 2 ] ; then
usage
exit
fi

INITFILE=$1
shift;

Expand Down

0 comments on commit 09950bc

Please sign in to comment.