目录
#!/bin/bash inputPara=$1 pkgNames=("racoam" "siteoam" "nodeoam") for pkgName in ${pkgNames[@]} do if [[ $pkgName == $inputPara || $inputPara == "" ]] then rm -rf $pkgName mkdir $pkgName tar -zxvf $pkgName*.tgz -C $pkgName fi done