qunarcorp / bistoury

Bistoury是去哪儿网的java应用生产问题诊断工具,提供了一站式的问题诊断方案
GNU General Public License v3.0
4.04k stars 830 forks source link

统一替换shell脚本声明为bash, 以增强os兼容性 #68

Closed qxo closed 4 years ago

qxo commented 4 years ago

大部shell脚本实际为bash,当os默认的/bin/sh不是bash时,就会有兼容问题,故统一替换为bash

find . -name "*.sh" | xargs sed -i 's@^#!/bin/sh@#!/bin/bash@g'
xleiy commented 4 years ago

thanks