add: independ

This commit is contained in:
simonzhangsz committed 2023-10-25 18:30:42 +08:00
1 parent 1ae81d7b59
commit 3ea68aca59
2 files changed
+54

No files matched your search

+18
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