Skip to content
This repository was archived by the owner on Nov 10, 2024. It is now read-only.

Commit 791d169

Browse files
committed
Decimal point and Un-tar fix
1 parent 211a469 commit 791d169

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

common/addon/Website-Content-Size/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ download_size() {
1111
# Calculate and print estimated website size
1212
eval "$2='$(
1313
grep -e "Length" "$log_path" |
14-
awk '{sum+=$2} END {printf("%.0f", sum / 1024 / 1024)}'
14+
awk '{sum+=$2} END {printf("%.1f", sum / 1024 / 1024)}'
1515
) Mb'"
1616

1717
# Delete wget log file

common/install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if [ -f "$BootAnimation_location" ] && selector 'Do you want to install the Pixe
2727
[ -f "$BootAnimation_location" ] || wget -O "$BootAnimation_location" "$BootAnimation_download"
2828

2929
# Extract archive
30-
tar -xf "$BootAnimation_location"
30+
tar -xf "$BootAnimation_location" -C "$MODPATH/system/product/media/"
3131

3232
# Remove archive
3333
rm "$BootAnimation_location"
@@ -59,7 +59,7 @@ if [ -f "$NgaResources_location" ] && selector 'Do you want to install NgaResour
5959
[ -f "$NgaResources_location" ] || wget -O "$NgaResources_location" "$NgaResources_download"
6060

6161
# Extract archive
62-
tar -xf "$NgaResources_location"
62+
tar -xf "$NgaResources_location" -C "$MODPATH/system/product/app/"
6363

6464
# Remove archive
6565
rm "$NgaResources_location"
@@ -79,7 +79,7 @@ if [ -f "$PixelWallpapers2021_location" ] && selector 'Do you want to install Pi
7979
[ -f "$PixelWallpapers2021_location" ] || wget -O "$PixelWallpapers2021_location" "$PixelWallpapers2021_download"
8080

8181
# Extract archive
82-
tar -xf "$PixelWallpapers2021_location"
82+
tar -xf "$PixelWallpapers2021_location" -C "$MODPATH/system/product/app/"
8383

8484
# Remove archive
8585
rm "$PixelWallpapers2021_location"

0 commit comments

Comments
 (0)