mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-02 14:36:17 -04:00
Output the amount of blobs removed
This commit is contained in:
parent
2a5e64d3af
commit
d62c861942
1 changed files with 4 additions and 0 deletions
|
@ -4,6 +4,7 @@ deblob() {
|
|||
blobList=$2;
|
||||
cd $base$dir; #Enter the target directory
|
||||
echo "[DEBLOBBING] "$dir; #Inform the user
|
||||
initialSize="$(wc -l < $blobList)"; #Record the initial size
|
||||
cp $blobList $blobList".bak"; #Make a backup
|
||||
#
|
||||
#START OF REMOVAL
|
||||
|
@ -28,6 +29,9 @@ deblob() {
|
|||
#END OF REMOVAL
|
||||
#
|
||||
mv $blobList".new" $blobList; #Move the new list into place
|
||||
finalSize="$(wc -l < $blobList)"; #Record the final size
|
||||
delta=$(($initialSize - $finalSize)); #Calculate the difference in size
|
||||
echo "Removed "$delta" blobs from "$blobList; #Inform the user
|
||||
source setup-makefiles.sh; #Update the make files
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue