diff options
| author | mo khan <mo.khan@gmail.com> | 2020-03-02 14:52:42 -0700 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-03-02 14:52:42 -0700 |
| commit | a5cb588a3bca5e7f9206d66aa231f2ed2c9174e5 (patch) | |
| tree | 8d992f83d37956ab7d65eb34496084c176150810 | |
| parent | 395b3cce20fb686581266971323b59d88c2b2843 (diff) | |
Compress mono and dotnet directories
| -rw-r--r-- | config/.bashrc | 6 | ||||
| -rw-r--r-- | config/install.sh | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/config/.bashrc b/config/.bashrc index 56172a3..08e122c 100644 --- a/config/.bashrc +++ b/config/.bashrc @@ -14,6 +14,12 @@ alias nuget='mono /usr/local/bin/nuget.exe' echo 'Inflating /opt/asdf' tar --use-compress-program zstd -xf /opt/asdf.tar.zst -C /opt +echo 'Inflating /usr/lib/mono' +tar --use-compress-program zstd -xf /usr/lib/mono.tar.zst -C /usr/lib + +echo 'Inflating /usr/share/dotnet' +tar --use-compress-program zstd -xf /usr/share/dotnet.tar.zst -C /usr/share/dotnet + # shellcheck source=/dev/null . "$ASDF_DATA_DIR/asdf.sh" # shellcheck source=/dev/null diff --git a/config/install.sh b/config/install.sh index e126807..44a6477 100644 --- a/config/install.sh +++ b/config/install.sh @@ -99,6 +99,15 @@ chmod +t /tmp cd /opt tar --use-compress-program zstd -cf /opt/asdf.tar.zst asdf rm -fr /opt/asdf/ + +cd /usr/lib +tar --use-compress-program zstd -cf /usr/lib/mono.tar.zst mono +rm -fr /usr/lib/mono + +cd /usr/share +tar --use-compress-program zstd -cf /usr/share/dotnet.tar.zst dotnet +rm -fr /usr/share/dotnet + rm -fr "$ASDF_DATA_DIR/docs" \ "$ASDF_DATA_DIR/installs/**/**/share" \ "$ASDF_DATA_DIR/installs/golang/**/go/test" \ |
