Skip to content

Commit 1e4eb3e

Browse files
committed
Minor syntactic cleanup
1 parent b02d9f4 commit 1e4eb3e

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

commands/add

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ KIND="${1%/}"
77
URL="$2"
88
BRANCH="$3"
99

10-
if [ "$#" -ne 3 ] || [ ! -d .git ] || [[ ! "$KIND" =~ ^(requires|equipment)$ ]]; then
10+
if [ $# -ne 3 ] || [ ! -d .git ] || [[ ! "$KIND" =~ ^(requires|equipment)$ ]]; then
1111
CMD="${0##*/}"
1212
cat << EOF
1313
Usage: $CMD [requires|equipment] url branch

commands/clone

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# shellcheck source=.settings
44
. "${BASH_SOURCE%/*}/.settings"
55

6-
if [ "$#" -ne 2 ]; then
6+
if [ $# -ne 2 ]; then
77
CMD="${0##*/}"
88
cat << EOF
99
Usage: $CMD url branch

commands/format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# shellcheck source=.settings
44
. "${BASH_SOURCE%/*}/.settings"
55

6-
if [ "$#" -ne 0 ] || [ ! -d .git ] ; then
6+
if [ $# -ne 0 ] || [ ! -d .git ]; then
77
CMD="${0##*/}"
88
cat << EOF
99
Usage: $CMD

commands/init

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if [ -z "$VERSION" ]; then
2222
fi
2323
VERSION="$(to-cpp "$VERSION")"
2424

25-
if [ "$#" -ne 0 ]; then
25+
if [ $# -ne 0 ]; then
2626
CMD="${0##*/}"
2727
cat << EOF
2828
Usage: $CMD

commands/list

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# shellcheck source=.settings
44
. "${BASH_SOURCE%/*}/.settings"
55

6-
if [ "$#" -ne 0 ] || [ ! -e .gitmodules ] ; then
6+
if [ $# -ne 0 ] || [ ! -e .gitmodules ]; then
77
CMD="${0##*/}"
88
cat << EOF
99
Usage: $CMD

commands/remove

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
SUBMODULE="${1%/}"
77

8-
if [ "$#" -ne 1 ] || [ ! -d "$SUBMODULE" ] ; then
8+
if [ $# -ne 1 ] || [ ! -d "$SUBMODULE" ]; then
99
CMD="${0##*/}"
1010
cat << EOF
1111
Usage: $CMD path

commands/setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# shellcheck source=.settings
44
. "${BASH_SOURCE%/*}/.settings"
55

6-
if [ "$#" -ne 0 ] || [ ! -f CMakeLists.txt ]; then
6+
if [ $# -ne 0 ] || [ ! -f CMakeLists.txt ]; then
77
CMD="${0##*/}"
88
cat << EOF
99
Usage: [option=value ...] $CMD

commands/update

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# shellcheck source=.settings
44
. "${BASH_SOURCE%/*}/.settings"
55

6-
if [ "$#" -ne 0 ] || [ ! -e .gitmodules ] ; then
6+
if [ $# -ne 0 ] || [ ! -e .gitmodules ]; then
77
CMD="${0##*/}"
88
cat << EOF
99
Usage: $CMD

commands/upgrade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# shellcheck source=.settings
44
. "${BASH_SOURCE%/*}/.settings"
55

6-
if [ "$#" -ne 0 ] || [ ! -e .gitmodules ] ; then
6+
if [ $# -ne 0 ] || [ ! -e .gitmodules ]; then
77
CMD="${0##*/}"
88
cat << EOF
99
Usage: $CMD

0 commit comments

Comments
 (0)