[why] function linux_dep() and mac_dep() all use 'gem install', so replace gem sources in function entry run().
Signed-off-by: Liu Yinsi liuyinsi@163.com --- sbin/install-dependencies.sh | 1 + 1 file changed, 1 insertion(+)
diff --git a/sbin/install-dependencies.sh b/sbin/install-dependencies.sh index 6b418e5f4..32d71ccf8 100755 --- a/sbin/install-dependencies.sh +++ b/sbin/install-dependencies.sh @@ -39,6 +39,7 @@ mac_dep()
run() { + gem sources -r https://rubygems.org/ -a https://gems.ruby-china.com/ if is_system "Linux"; then linux_dep elif is_system "Darwin"; then