mirror of
https://github.com/agresdominik/download-ram.git
synced 2026-07-21 16:10:55 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 375c6cd45d | |||
| 42b76f9ef7 | |||
| 5a8154ce11 |
@@ -1,6 +1,6 @@
|
||||
[ tool.commitizen ]
|
||||
name = "cz_conventional_commits"
|
||||
version = "0.1.0"
|
||||
version = "0.2.0"
|
||||
tag_format = "v$version"
|
||||
update_changelog_on_bump = true
|
||||
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)
|
||||
+10
-1
@@ -125,10 +125,11 @@ echo "Please select how much RAM you want to download:"
|
||||
echo "1) 4GiB of RAM"
|
||||
echo "2) 8GiB 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 ""
|
||||
|
||||
read -r -p "Enter your choice (1-3): " choice
|
||||
read -r -p "Enter your choice (1-4): " choice
|
||||
|
||||
case "$choice" in
|
||||
1)
|
||||
@@ -140,6 +141,14 @@ case "$choice" in
|
||||
3)
|
||||
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."
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user