#!/bin/sh
set -e
if ! command -v $1 > /dev/null; then
echo "$1 command has not found"
else
echo "$1 command has found"
fi
echo "done"
#!/bin/sh
set -e
if ! command -v $1 > /dev/null; then
echo "$1 command has not found"
else
echo "$1 command has found"
fi
echo "done"
转载于:https://my.oschina.net/xuxiali/blog/2878276