参考:https://blog.csdn.net/soindy/article/details/73794548
例如判断apt命令是否存在
if command -v apt > /dev/null 2>&1; then
APT=apt;
else
APT=yum;
fi
echo $APT
参考:https://blog.csdn.net/soindy/article/details/73794548
例如判断apt命令是否存在
if command -v apt > /dev/null 2>&1; then
APT=apt;
else
APT=yum;
fi
echo $APT
Except as otherwise noted, this blog is licensed under CC BY-SA 4.0 License.
©2021-
searchstar
|
pv
|
uv
Theme Tree
by Wu Jun
Powered by Hexo