1
0

add: independ

This commit is contained in:
2023-10-25 18:30:42 +08:00
parent 1ae81d7b59
commit 3ea68aca59
2 changed files with 54 additions and 0 deletions

18
extras/independ.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
pwddir=`pwd`
rootdir=$pwddir/depend-u22.04/
for subdepdir in $(find $rootdir -type d); do
path=`dirname $subdepdir`
if [ $path != $pwddir ]; then
echo $subdepdir
cd $subdepdir
filenum=`ls -l |grep "^-"|wc -l`
if [ $filenum -eq 1 ]; then
sudo dpkg -i *.deb
elif [ $filenum -gt 1 ]; then
sudo dpkg -i --ignore-depends *.deb
fi
fi
done