add: independ
This commit is contained in:
18
extras/independ.sh
Normal file
18
extras/independ.sh
Normal 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
|
||||
Reference in New Issue
Block a user