btrfs-progs: fsck.btrfs: Fix bashism and bad getopts processing
authorDimitri John Ledkov <dimitri.j.ledkov@intel.com>
Thu, 21 May 2015 12:50:55 +0000 (13:50 +0100)
committerDavid Sterba <dsterba@suse.cz>
Thu, 21 May 2015 14:53:44 +0000 (16:53 +0200)
commit7f1ccecfaaffcda4cfe11b315dbca0b899f4f8aa
treeb37be89379f80221f8a303476c2d2913c56b1f3c
parentd6cedbcdd334174468f6f8815fb030b90704df74
btrfs-progs: fsck.btrfs: Fix bashism and bad getopts processing

First fix == bashism, as that is not accepted by e.g. Debian/Ubuntu
dash.

Secondly shift OPTIND, such that last parameter is checked to exist.

Signed-off-by: Dimitri John Ledkov <dimitri.j.ledkov@intel.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
fsck.btrfs