Skip to content

Commit 0441193

Browse files
committed
在 软件安装公用脚本中 增加了 复制文件函数
1 parent 3b55398 commit 0441193

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Shell/Plugin/Install.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ function UnPackage_tar(){
5555
[ $? -ne 0 ] && echo ">>>>> Error: The software untar error" && exit 1
5656
}
5757

58+
### 复制文件
59+
function Package_copy(){
60+
mkdir -p ${SoftwarePathInstall}
61+
cp ${SoftwarePathPackage} ${SoftwarePathInstall}/${1}
62+
[ $? -ne 0 ] && echo ">>>>> Error: The software copy error" && exit 1
63+
}
64+
5865
### 验证软件安装
5966
function CheckInstalld_file() {
6067
if [ ! -f ${SoftwarePathInstall}/${1} ]; then

0 commit comments

Comments
 (0)