mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
Output the amount of blobs removed
This commit is contained in:
parent
2a5e64d3af
commit
d62c861942
@ -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…
Reference in New Issue
Block a user