[why] auto install dependencies must meet conditions, if not, exit script.
Signed-off-by: Liu Yinsi liuyinsi@163.com --- sbin/install-dependencies.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sbin/install-dependencies.sh b/sbin/install-dependencies.sh index f2a9155f6..c16385e0f 100755 --- a/sbin/install-dependencies.sh +++ b/sbin/install-dependencies.sh @@ -24,7 +24,7 @@ linux_dep() sudo gem install -f git activesupport rest-client faye-websocket ;; *) - echo "$ID not support! please install dependencies manually." + echo "$ID not support! please install dependencies manually." && exit 1 ;; esac } @@ -44,7 +44,7 @@ run() elif is_system "Darwin"; then mac_dep else - echo "$DISTRO not supported!" + echo "$DISTRO not supported!" && exit 1 fi }