Fixed "which -s" option, which does not work on Linux.
Change-Id: I56b73e88e18fbda13cac9443454f6b726803780d
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -11,7 +11,7 @@ | ... | @@ -11,7 +11,7 @@ |
11 | 11 | ||
12 | [ -n "$1" ] && OCI=$(find_node $1) && shift | 12 | [ -n "$1" ] && OCI=$(find_node $1) && shift |
13 | 13 | ||
14 | -if which -s client && [ -z "$ONOS_USE_SSH" ]; then | 14 | +if which client 2>/dev/null && [ -z "$ONOS_USE_SSH" ]; then |
15 | # Use Karaf client only if we can and are allowed to | 15 | # Use Karaf client only if we can and are allowed to |
16 | unset KARAF_HOME | 16 | unset KARAF_HOME |
17 | client -h $OCI -u karaf "$@" 2>/dev/null | 17 | client -h $OCI -u karaf "$@" 2>/dev/null | ... | ... |
-
Please register or login to post a comment