Skip to content

Commit 0278dc0

Browse files
committed
fix arg checks for run-shfmt.sh
1 parent 46d14f2 commit 0278dc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/qa/run-shfmt.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ sourceOnce "$dir_of_tegonal_scripts/utility/array-utils.sh"
4949
function runShfmt() {
5050
exitIfCommandDoesNotExist "shfmt" "execute $dir_of_tegonal_scripts/ci/install-shfmt.sh (if pulled) or see hhttps://github.com/mvdan/sh/releases"
5151

52-
if (($# < 2)); then
52+
if (($# < 1)); then
5353
logError "At least one argument needs to be passed to runShfmt, given \033[0;36m%s\033[0m\nFollowing a description of the parameters:" "$#"
5454
echo >&2 '1: paths name of array which contains paths in which *.sh files are searched'
55-
echo >&2 '3... args additional args which are passed to the find command'
55+
echo >&2 '2... args additional args which are passed to the find command'
5656
printStackTrace
5757
exit 9
5858
fi

0 commit comments

Comments
 (0)