Skip to content

Commit cce6a28

Browse files
committed
invert the sense of command -v
1 parent a396e91 commit cce6a28

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ci/install.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
set -ex
33

44
if command -v mdbook >/dev/null 2>&1; then
5+
echo "mdbook already installed at $(command -v mdbook)"
6+
else
57
echo "installing mdbook"
68
cargo install mdbook --vers "0.0.28"
7-
else
8-
echo "mdbook already installed at $(which mdbook)"
99
fi
1010

1111
if command -v ghp-import >/dev/null 2>&1; then
12+
echo "ghp-import already installed at $(which ghp-import)"
13+
else
1214
echo "installing ghp-import"
1315
pip install ghp-import
14-
else
15-
echo "ghp-import already installed at $(which ghp-import)"
1616
fi

0 commit comments

Comments
 (0)