4 Commits

Author SHA1 Message Date
agresdominik df41f6c8df bump: version 0.1.0 → 0.2.0 2026-06-05 23:44:40 +02:00
agresdominik 42b76f9ef7 feat: add custom ram download range 2026-06-05 23:06:54 +02:00
agresdominik 5a8154ce11 chore: finish commitizen config 2026-06-05 23:03:16 +02:00
agresdominik b2c981f760 chore: add commitizen config 2026-06-05 23:02:41 +02:00
4 changed files with 41 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
[ tool.commitizen ]
name = "cz_conventional_commits"
version = "0.2.0"
tag_format = "v$version"
update_changelog_on_bump = true
version_files = [ ".cz.toml:version" ]
+7
View File
@@ -0,0 +1,7 @@
## v0.2.0 (2026-06-05)
### Feat
- add custom ram download range
## v0.0.1 (2026-06-05)
+18
View File
@@ -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
View File
@@ -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