Skip to content

Commit

Permalink
new-xsh - fix unexpected semi-colon in subcommand-names option code c…
Browse files Browse the repository at this point in the history
…hunk
  • Loading branch information
Renaud Guillard committed Mar 18, 2024
1 parent dc29a89 commit 92e631c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ns/sh/new-xsh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,7 @@ fi
if ns_array_contains 'subcommand-names' "${programContentOptions[@]}"
then
cat >> "${shFile}" << EOF
\${displaySubcommandNames}; \\
\${displaySubcommandNames} \\
&& for n in "\${parser_subcomomand_names[@]}"; do echo "\${n}"; done \\
&& exit 0
EOF
Expand All @@ -1303,7 +1303,7 @@ fi
if ns_array_contains 'subcommand-names' "${programContentOptions[@]}"
then
cat >> "${shFile}" << EOF
\${displaySubcommandNames}; \\
\${displaySubcommandNames} \\
&& for n in "\${parser_subcomomand_names[@]}"; do echo "\${n}"; done \\
&& exit 0
EOF
Expand Down
4 changes: 2 additions & 2 deletions ns/xsh/apps/new-xsh.body.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ fi
if ns_array_contains 'subcommand-names' "${programContentOptions[@]}"
then
cat >> "${shFile}" << EOF
\${displaySubcommandNames}; \\
\${displaySubcommandNames} \\
&& for n in "\${parser_subcomomand_names[@]}"; do echo "\${n}"; done \\
&& exit 0
EOF
Expand All @@ -226,7 +226,7 @@ fi
if ns_array_contains 'subcommand-names' "${programContentOptions[@]}"
then
cat >> "${shFile}" << EOF
\${displaySubcommandNames}; \\
\${displaySubcommandNames} \\
&& for n in "\${parser_subcomomand_names[@]}"; do echo "\${n}"; done \\
&& exit 0
EOF
Expand Down

0 comments on commit 92e631c

Please sign in to comment.