调整打包路径

This commit is contained in:
modehua 2022-09-28 16:21:18 +08:00
parent c2c3574a07
commit 1c793f3edf
1 changed files with 7 additions and 3 deletions

View File

@ -275,11 +275,15 @@ then
if [ ! -d "backup/dpkg/$time2/$dpkgtype" ];then if [ ! -d "backup/dpkg/$time2/$dpkgtype" ];then
mkdir -p backup/dpkg/$time2/$dpkgtype mkdir -p backup/dpkg/$time2/$dpkgtype
fi fi
else elif [ "$oem" == "hgweb" ] || [ "$oem" == "lscweb" ] || [ "$oem" == "hwweb" ];
dpkgtype="web" dpkgtype="web"
if [ ! -d "backup/dpkg/$time2/$dpkgtype" ];then if [ ! -d "backup/dpkg/$time2/$dpkgtype" ];then
mkdir -p backup/dpkg/$time2/$dpkgtype mkdir -p backup/dpkg/$time2/$dpkgtype
fi fi
else
dpkgtype="sdk"
if [ ! -d "backup/dpkg/$time2/$dpkgtype" ];then
mkdir -p backup/dpkg/$time2/$dpkgtype
fi
fi fi
dpkg -b backup/$syspath/$oem/$ver backup/dpkg/$time2/$dpkgtype/$oem/$dpkgpath"_"$ver"_"$dpkgarch.deb
dpkg -b backup/$syspath/$oem/$ver backup/dpkg/$time2/$dpkgtype/$dpkgpath"_"$ver"_"$dpkgarch.deb