Closed qxo closed 4 years ago
大部shell脚本实际为bash,当os默认的/bin/sh不是bash时,就会有兼容问题,故统一替换为bash
find . -name "*.sh" | xargs sed -i 's@^#!/bin/sh@#!/bin/bash@g'
thanks
大部shell脚本实际为bash,当os默认的/bin/sh不是bash时,就会有兼容问题,故统一替换为bash