Skip to content

Commit

Permalink
Ensure args are available before shifting
Browse files Browse the repository at this point in the history
  • Loading branch information
remino committed Oct 25, 2022
1 parent 8b89c94 commit 28b51e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ __SCRIPTNAMESC___main() {
shift "$(( OPTIND - 1 ))"

[ -z "$cmd" ] && cmd="$1"
shift
[ $# -gt 0 ] && shift

[ -z "$cmd" ] && cmd="help"
#[ -z "$cmd" ] && cmd="process"
Expand Down

0 comments on commit 28b51e7

Please sign in to comment.