无法理解的神奇操作

1、神奇的赋值

差不多就是一个if选择,然后赋值

svn=2
[[ $svn =~ 1 ]] && svn_path="aaaa" && package_path="bbbb"
[[ $svn =~ 2 ]] && svn_path="cccc" && package_path="dddd"
echo $svn_path 
echo $package_path

2、神奇的赋值

https://github.com/cil-project/cil/blob/develop/install-sh

3、

results matching ""

    No results matching ""