We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.git
1 parent e4a0332 commit a219933Copy full SHA for a219933
commands/add
@@ -7,7 +7,7 @@ KIND="${1%/}"
7
URL="$2"
8
BRANCH="$3"
9
10
-if [ $# -ne 3 ] || [ ! -d .git ] || [[ ! "$KIND" =~ ^(requires|equipment)$ ]]; then
+if [ $# -ne 3 ] || [ ! -e .git ] || [[ ! "$KIND" =~ ^(requires|equipment)$ ]]; then
11
CMD="${0##*/}"
12
cat << EOF
13
Usage: $CMD [requires|equipment] url branch
commands/format
@@ -3,7 +3,7 @@
3
# shellcheck source=.settings
4
. "${BASH_SOURCE%/*}/.settings"
5
6
-if [ $# -ne 0 ] || [ ! -d .git ]; then
+if [ $# -ne 0 ] || [ ! -e .git ]; then
Usage: $CMD
0 commit comments