Skip to content

Commit 5941f56

Browse files
committed
Fix shellcheck for shift in parse_commandline
1 parent f35da8e commit 5941f56

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

bin/argbash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ parse_commandline()
234234
_positionals_count=$((_positionals_count + 1))
235235
;;
236236
esac
237+
# shellcheck disable=SC2317
237238
shift
238239
done
239240
}

resources/examples/simple-parsing.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ parse_commandline()
9595
_positionals_count=$((_positionals_count + 1))
9696
;;
9797
esac
98+
# shellcheck disable=SC2317
9899
shift
99100
done
100101
}

resources/examples/simple-wrapper.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ parse_commandline()
104104
_positionals_count=$((_positionals_count + 1))
105105
;;
106106
esac
107+
# shellcheck disable=SC2317
107108
shift
108109
done
109110
}

src/function_generators.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ m4_define([_MAKE_ARGV_PARSING_FUNCTION], [MAKE_FUNCTION(
175175
[_EVAL_OPTIONALS_AND_POSITIONALS],
176176
[_STORE_CURRENT_ARG_AS_POSITIONAL])],
177177
[_JOIN_INDENTED(1,
178+
[_INDENT_()[# shellcheck disable=SC2317]],
178179
[_INDENT_()[shift]],
179180
[done])],
180181
)],

0 commit comments

Comments
 (0)