Skip to content

Commit

Permalink
fix getopts code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Dec 11, 2023
1 parent cbf9245 commit a7b466b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/mk-data-partition
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ EOF
}

while getopts Fhs: opt ; do
echo OPT $opt
case "$opt" in
h) usage 0;;
F) fmt=exfat ;;
s) size=$OPTARG
shift ;;
s) size=$OPTARG ;;
*) usage 1;;
esac
shift
done
shift $((OPTIND - 1))

filename=$1
if [ -z "$filename" ]; then
Expand Down

0 comments on commit a7b466b

Please sign in to comment.