On Mon, Dec 21, 2020 at 10:37:25PM +0800, Zhang Dewan wrote:
On Mon, Dec 21, 2020 at 04:48:19PM +0800, Wang Yong wrote:
On Mon, Dec 21, 2020 at 02:46:22PM +0800, Wei Jihui wrote:
all dependent functions is move to lib/env.sh, sbin/set-env.sh in not required.
Signed-off-by: Wei Jihui weijihuiall@163.com
sbin/install-dependencies.sh | 40 +++++++++++++++++------------------- 1 file changed, 19 insertions(+), 21 deletions(-)
diff --git a/sbin/install-dependencies.sh b/sbin/install-dependencies.sh index 7605a29f..b4d3ad22 100755 --- a/sbin/install-dependencies.sh +++ b/sbin/install-dependencies.sh @@ -1,30 +1,28 @@
if type dnf > /dev/null 2>&1; then
no need to add 2>&1 if >/dev/null
if: tyep dnf > /dev/null will return error "comand not found" so, i think it's better to take out "2>&1" !
$ type dnf > /dev/null bash: type: dnf:未找到
$ command -v dnf > /dev/null $
yes, it's different.
Thanks, Yong