mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-25 15:39:26 -05:00
Output the amount of blobs removed
This commit is contained in:
parent
2a5e64d3af
commit
d62c861942
@ -4,6 +4,7 @@ deblob() {
|
|||||||
blobList=$2;
|
blobList=$2;
|
||||||
cd $base$dir; #Enter the target directory
|
cd $base$dir; #Enter the target directory
|
||||||
echo "[DEBLOBBING] "$dir; #Inform the user
|
echo "[DEBLOBBING] "$dir; #Inform the user
|
||||||
|
initialSize="$(wc -l < $blobList)"; #Record the initial size
|
||||||
cp $blobList $blobList".bak"; #Make a backup
|
cp $blobList $blobList".bak"; #Make a backup
|
||||||
#
|
#
|
||||||
#START OF REMOVAL
|
#START OF REMOVAL
|
||||||
@ -28,6 +29,9 @@ deblob() {
|
|||||||
#END OF REMOVAL
|
#END OF REMOVAL
|
||||||
#
|
#
|
||||||
mv $blobList".new" $blobList; #Move the new list into place
|
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
|
source setup-makefiles.sh; #Update the make files
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user