mirror of
https://github.com/agresdominik/download-ram.git
synced 2026-07-21 16:10:55 +00:00
Compare commits
3 Commits
v0.0.1
...
df41f6c8df
| Author | SHA1 | Date | |
|---|---|---|---|
| df41f6c8df | |||
| 42b76f9ef7 | |||
| 5a8154ce11 |
@@ -1,6 +1,6 @@
|
|||||||
[ tool.commitizen ]
|
[ tool.commitizen ]
|
||||||
name = "cz_conventional_commits"
|
name = "cz_conventional_commits"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
tag_format = "v$version"
|
tag_format = "v$version"
|
||||||
update_changelog_on_bump = true
|
update_changelog_on_bump = true
|
||||||
version_files = [ ".cz.toml:version" ]
|
version_files = [ ".cz.toml:version" ]
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
## v0.2.0 (2026-06-05)
|
||||||
|
|
||||||
|
### Feat
|
||||||
|
|
||||||
|
- add custom ram download range
|
||||||
|
|
||||||
|
## v0.0.1 (2026-06-05)
|
||||||
@@ -12,6 +12,23 @@ That is why you can use this script to automate the downloading and installing o
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
### Via Homebrew (Linux)
|
||||||
|
|
||||||
|
Add the tap and install:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
brew tap agresdominik/repo https://github.com/agresdominik/repo
|
||||||
|
brew install download-ram
|
||||||
|
```
|
||||||
|
|
||||||
|
Run the script:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo $(which download-ram)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Manual
|
||||||
|
|
||||||
Clone the repository:
|
Clone the repository:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -38,6 +55,7 @@ Please select how much RAM you want to download:
|
|||||||
1) 4GiB of RAM
|
1) 4GiB of RAM
|
||||||
2) 8GiB of RAM
|
2) 8GiB of RAM
|
||||||
3) 16GiB of RAM
|
3) 16GiB of RAM
|
||||||
|
4) Custom amount
|
||||||
Plese note you need at least the chosen amount of space on your drive + 4GiB
|
Plese note you need at least the chosen amount of space on your drive + 4GiB
|
||||||
|
|
||||||
> 1
|
> 1
|
||||||
|
|||||||
+10
-1
@@ -125,10 +125,11 @@ echo "Please select how much RAM you want to download:"
|
|||||||
echo "1) 4GiB of RAM"
|
echo "1) 4GiB of RAM"
|
||||||
echo "2) 8GiB of RAM"
|
echo "2) 8GiB of RAM"
|
||||||
echo "3) 16GiB of RAM"
|
echo "3) 16GiB of RAM"
|
||||||
|
echo "4) Custom amount"
|
||||||
echo "Plese note you need at least the chosen amount of space on your drive + 4GiB"
|
echo "Plese note you need at least the chosen amount of space on your drive + 4GiB"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
read -r -p "Enter your choice (1-3): " choice
|
read -r -p "Enter your choice (1-4): " choice
|
||||||
|
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
1)
|
1)
|
||||||
@@ -140,6 +141,14 @@ case "$choice" in
|
|||||||
3)
|
3)
|
||||||
value=16
|
value=16
|
||||||
;;
|
;;
|
||||||
|
4)
|
||||||
|
read -r -p "Enter a custom amount in GiB (1-16): " custom
|
||||||
|
if [[ ! "$custom" =~ ^[0-9]+$ ]] || (( custom < 1 || custom > 16 )); then
|
||||||
|
echo "Invalid amount. Please enter a whole number between 1 and 16."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
value=$custom
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Invalid choice."
|
echo "Invalid choice."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user